Skip to content

Commit

Permalink
fix: Celery queue 3 name
Browse files Browse the repository at this point in the history
  • Loading branch information
karatugo committed Apr 23, 2024
1 parent d5b3ebb commit 5eff2eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions k8chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ image:
celeryPwd: "password"
celeryQueue1: "preval"
celeryQueue2: "postval"
celeryQueue3: "metadata-yml-update-sandbox"
celeryQueue3: "metadata-yml-update"
storagePath: "./data"
validateSSH: true
computeFarmLogin: ""
Expand Down Expand Up @@ -78,7 +78,7 @@ service:

worker:
name: gwas-ss-worker
celeryCmd: '["celery", "-A", "sumstats_service.app.celery", "worker", "--loglevel=INFO", "--queues=preval,postval,metadata-yml-update-sandbox"]'
celeryCmd: '["celery", "-A", "sumstats_service.app.celery", "worker", "--loglevel=INFO", "--queues=preval,postval,metadata-yml-update"]'
celeryCmdPostOnly: '["celery", "-A", "sumstats_service.app.celery", "worker", "--loglevel=INFO", "--queues=postval"]'
replicaCount: 1

Expand Down
2 changes: 1 addition & 1 deletion sumstats_service/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def get_dir_contents(unique_id):
# --- Celery tasks --- #
# postval --> app side worker queue
# preval --> compute cluster side worker queue
# metadata-yml-update-sandbox --> dynamic metadata update queue
# metadata-yml-update --> dynamic metadata update queue


@celery.task(queue=config.CELERY_QUEUE2, options={"queue": config.CELERY_QUEUE2})
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def celery_config():
port=os.environ['QUEUE_PORT']
),
'result_backend': 'rpc://',
'queues':('preval', 'postval', 'metadata-yml-update-sandbox'),
'queues':('preval', 'postval', 'metadata-yml-update'),
'task_always_eager': True
}

Expand Down

0 comments on commit 5eff2eb

Please sign in to comment.