Dmitrijs Zubriks
Dmitrijs Zubriks

Reputation: 2806

Run multiple Celery chains at the same time

I have Celery tasks chain that I call with apply_async. Each task in chain depends on the result from previous task.

Basically the worklof looks like this:

  1. Fetch data from DB.
  2. For each fetched row run chain with tasks.

Behaviour that I want to achieve is to run multiple chains at one time. But it seems like it runs them in a row, not simultaneously. How to fix this issue?

Upvotes: 0

Views: 862

Answers (1)

scytale
scytale

Reputation: 12641

If you want to run chains at once you will need to run more than one worker.

Upvotes: 1

Related Questions