[Update] 修改资产创建格式

This commit is contained in:
ibuler
2019-06-19 19:25:21 +08:00
parent 10616b8d9e
commit 2cd092af42
17 changed files with 257 additions and 304 deletions

View File

@@ -1,6 +1,7 @@
# coding: utf-8
import os
import subprocess
import datetime
from django.conf import settings
from celery import shared_task, subtask
@@ -105,10 +106,10 @@ def hello(name, callback=None):
@shared_task
@after_app_shutdown_clean_periodic
@register_as_period_task(interval=30)
# @after_app_shutdown_clean_periodic
# @register_as_period_task(interval=30)
def hello123():
print("Hello world")
print("{} Hello world".format(datetime.datetime.now().strftime("%H:%M:%S")))
@shared_task