Skip to content

Commit 0b2dc04

Browse files
author
Obada Haddad
committed
Updated Celery to 5.2.2 (Major version upgrade)
1 parent 341af28 commit 0b2dc04

File tree

3 files changed

+355
-139
lines changed

3 files changed

+355
-139
lines changed

compute_worker/compute_worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import websockets
2323
import yaml
2424
from billiard.exceptions import SoftTimeLimitExceeded
25-
from celery import Celery, task, utils
25+
from celery import Celery, shared_task, utils
2626
from kombu import Queue, Exchange
2727
from urllib3 import Retry
2828

@@ -103,7 +103,7 @@ class ExecutionTimeLimitExceeded(Exception):
103103
# The main compute worker entrypoint, this is how a job is ran at the highest
104104
# level.
105105
# -----------------------------------------------------------------------------
106-
@task(name="compute_worker_run")
106+
@shared_task(name="compute_worker_run")
107107
def run_wrapper(run_args):
108108
logger.info(f"Received run arguments: {run_args}")
109109
run = Run(run_args)

0 commit comments

Comments
 (0)