mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-06 16:13:59 +00:00
[Update] 修改资产创建格式
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user