mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-23 08:49:04 +00:00
[Update] 修改 task 运行机制
This commit is contained in:
@@ -13,10 +13,5 @@ app = Celery('jumpserver')
|
||||
|
||||
# Using a string here means the worker will not have to
|
||||
# pickle the object when using Windows.
|
||||
app.config_from_object('django.conf:settings')
|
||||
app.config_from_object('django.conf:settings', namespace='CELERY')
|
||||
app.autodiscover_tasks(lambda: [app_config.split('.')[0] for app_config in settings.INSTALLED_APPS])
|
||||
|
||||
app.conf.update(
|
||||
CELERYBEAT_SCHEDULE={
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user