dingxin_toolbox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
425 B

from celery import shared_task
import datetime
from update.utils.client_util_custom import ClientUtilCustom
@shared_task
def update_client():
ClientUtilCustom().sync_client_db()
# with open(r'D:\Code\Work\Python\dingxin_toolbox_drf\update\tasks.txt', 'w', encoding='utf-8') as f:
# f.write(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
# f.close()
print("task success")
return True