Vladyslav Koval
Vladyslav Koval

Reputation: 65

Sequential celery task execution

I have a heavy celery task that parses data from XML files to the DB and sometimes I'm having troubles with media files because of celery tasks running multiple parsers, which I don't need. So I want to know is there any way to do this sequentially? I mean I need some kind of delay after every successful parsing or something like that.

Upvotes: 1

Views: 2685

Answers (1)

PJ Simpo
PJ Simpo

Reputation: 224

Celery has a Chains concept where you can link tasks together so that they execute once their preceding task completes successfully.

https://docs.celeryproject.org/en/stable/userguide/canvas.html#chains

Upvotes: 3

Related Questions