Skip to content

Commit

Permalink
Merge pull request #21 from linto-ai/refactoring/all
Browse files Browse the repository at this point in the history
use env var QUEUE_NAME and rollback queue name for healthcheck
  • Loading branch information
Jeronymous authored Feb 7, 2024
2 parents 487a544 + e51eb6d commit 8dfc7d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion celery_app/celeryapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
celery.conf.update(
{
"task_routes": {
"diarization_task": {"queue": service_name},
"diarization_task": {"queue": "diarization"},
}
}
)
Expand Down
2 changes: 1 addition & 1 deletion celery_app/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def unregister() -> None:


def queue() -> str:
return service_name
return os.environ.get("QUEUE_NAME", service_name)


def service_info() -> dict:
Expand Down

0 comments on commit 8dfc7d4

Please sign in to comment.