4 ms·
That sounds super interesting! This sentence raises a question: >You can chain tasks, so say TaskA launches another task. You can retry tasks if they fail. H
by darrellsilver 17y ago
That sounds super interesting! This sentence raises a question:
>You can chain tasks, so say TaskA launches another task. You can retry tasks if they fail.
How does this chaining work? Does each Task define its children? I've found that its cleaner to separate tasks from their place in the tree. For example, a script that downloads a CSV file each hour shouldn't care how that file is used.
- asksol 17y agoThere's nothing built in to celery for this, but some people have already made different solutions (one which may be added as standard in the future). There's a ChainableTask where you can chain tasks together, the next running when the previous is finished, and they can optionally take the result of the previous task as a parameter.