Home > Mobile >  Sequential celery task execution
Sequential celery task execution

Time:11-02

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.

CodePudding user response:

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

  • Related