Skip to content

Commit 6e1a04f

Browse files
committed
chore(controller): set worker_cancel_long_running_tasks_on_connection_loss
1 parent 98f3c81 commit 6e1a04f

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/settings/celery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Config:
2020
broker_url = os.environ.get('DRYCC_RABBITMQ_URL', 'amqp://guest:guest@127.0.0.1:5672/') # noqa
2121
cache_backend = 'django-cache'
2222
task_default_queue = 'priority.low'
23+
worker_cancel_long_running_tasks_on_connection_loss = True
2324

2425

2526
app = Celery('drycc')

rootfs/api/settings/production.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@
122122
)
123123
GUARDIAN_GET_INIT_ANONYMOUS_USER = 'api.models.base.get_anonymous_user_instance'
124124
ANONYMOUS_USER_NAME = os.environ.get('ANONYMOUS_USER_NAME', 'AnonymousUser')
125-
ANONYMOUS_USER_ID = -1
126125
LOGIN_URL = '/v2/auth/login/'
127126
LOGIN_REDIRECT_URL = '/'
128127

0 commit comments

Comments
 (0)