Commit Graph

5 Commits

Author SHA1 Message Date
Selwin Ong acdeff385d
Use job.return_value() instead of job.result when processing callbacks (#1801)
* Use job.return_value() instead of job.result when processing callbacks

* job.return_value() should also support Redis server < 5.
2023-02-05 19:24:15 +07:00
Selwin Ong bc5bb1fba2
Revert "Jobs that are run synchronously should always raise an exception" (#1682)
This reverts commit 0d21e714c3.
2022-07-31 15:53:18 +07:00
Selwin Ong 87bacb650e
Jobs that are run synchronously should always raise an exception (#1671) 2022-07-01 09:27:17 +07:00
Eric Feldman 93f34c796f
call callbacks and prepare job when running sync (#1599)
* call signals

* fix lines

* add tests and fix faliure status bug

* bump version
2021-12-07 17:20:36 +07:00
Selwin Ong 5590aab458
Success and failure callbacks (#1480)
* Support enqueueing with on_success_callback

* Got success callback to execute properly

* Added on_failure callback

* Document success and failure callbacks

* More Flake8 fixes

* Mention that options can also be passed in via environment variables

* Increase coverage on test_callbacks.py
2021-06-22 10:30:46 +07:00