Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[logging] 数据源数据同步流程打印更详细的日志 #296

Closed
3 tasks
wklken opened this issue Feb 25, 2022 · 2 comments
Closed
3 tasks

[logging] 数据源数据同步流程打印更详细的日志 #296

wklken opened this issue Feb 25, 2022 · 2 comments
Assignees
Labels
Layer: api Api module related Type: enhancement Enhancement for existing feature
Milestone

Comments

@wklken
Copy link
Collaborator

wklken commented Feb 25, 2022

  • 阅读代码, 梳理整体流程
  • 执行过程中关键步骤都有日志
  • 报错都有明确说明与堆栈
@wklken wklken added Type: enhancement Enhancement for existing feature Layer: api Api module related labels Feb 25, 2022
@wklken wklken self-assigned this Feb 25, 2022
@wklken
Copy link
Collaborator Author

wklken commented Feb 25, 2022

需要包含一些 进度数据(当前处理到哪里), 统计数据(同步了多少人, 删除了多少人)

@IMBlues
Copy link
Contributor

IMBlues commented Feb 25, 2022

class SyncTask(TimestampedModel):

建议看下 SyncTask,我们所有进度都默认向 DB 中存储,可以进一步扩展和优化 SyncTask

@wklken wklken added this to the Y2022M18-19 milestone May 5, 2022
wklken added a commit to wklken/bk-user that referenced this issue May 10, 2022
@wklken wklken closed this as completed May 10, 2022
wklken added a commit that referenced this issue May 10, 2022
…f MQ or Redis (#419)

* fix(api/celery): change CELERY_RESULT_BACKEND to django-db, instead of MQ or Redis  (close #402)
* fix(api/categories): sycn custom/ldap add more info in logger  (close  #296)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layer: api Api module related Type: enhancement Enhancement for existing feature
Projects
None yet
Development

No branches or pull requests

2 participants