0

Celery. An app sends a task to be executed.

r = task.delay()

Is it possible to execute code in the app address space upon task end other than by polling r?

Eduardo
  • 1,195
  • 11
  • 26

1 Answers1

1

There is no built-in way in celery. Generally speaking, you will have to come up with your own way for the task to send a notification back to your app if you want to perform the callback processing in the calling application's address space.

Here are some patterns you can use:

2ps
  • 13,665
  • 2
  • 24
  • 45