I know |
is a bitwise 'Or' operator but it makes me wonder that how it works in case of celery while chaining multiple tasks.
(first_task.s(url) | second_tasks.s()).apply_async()
I know that second task would take result of the first function as args but how's that possible? Where is '|' overloading in dj-celery source code?
@task
def second_task(results):
do_something(results)
Can somebody please provide some insights?