Skip to content

Commit

Permalink
One queue for each test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Jun 11, 2024
1 parent 3e85ea5 commit a1fb71a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import pytest

from celery.contrib.testing.worker import start_worker
Expand All @@ -15,6 +16,8 @@ def celery_config():
"task_always_eager": False,
"worker_concurrency": 1,
"beat_scheduler": "tests.integrations.celery.integration_tests:ImmediateScheduler",
"task_create_missing_queues": True,
"task_routes": {'*': {'queue': f'queue_{os.getpid()}'}},
}


Expand Down

0 comments on commit a1fb71a

Please sign in to comment.