Both methods are used to execute tasks asynchronously:
delay()
: Shortcut method, simpler syntax for basic task executionapply_async()
: More powerful, allows passing execution options# Using delay
task.delay(arg1, arg2)
# Using apply_async with options
task.apply_async(args=[arg1, arg2],
countdown=10,
retry=True)