Skip to content

Commit

Permalink
add crontab task
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jan 3, 2024
1 parent 73c2917 commit ab8685d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/tasks/lark.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def get_contact_by_lark_application(application_id):

@celery.task()
def get_contact_for_all_lark_application():
for app in db.session.query(IMApplication).filter(
for application in db.session.query(IMApplication).filter(
IMApplication.status == 0,
):
user_ids = get_contact_by_lark_application(app.id)
user_ids = get_contact_by_lark_application(application.id)
app.logger.info(
"success to get_contact_fo_lark_application %r %r", app.id, len(user_ids)
)

0 comments on commit ab8685d

Please sign in to comment.