You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ethan Wolinsky 192fbc9c50
Add support for a callback on stopped jobs (#1909)
* Add support for a callback on stopped jobs

This function will run when an active job is stopped using the
send_stopped_job_command_function

* Remove testing async job with stopped callback

* Remove stopped job test from simpleworker case.

I can't stop the job from the test until the work() method returns, at which point the
job can't be stopped.

* Improve coverage

* Add test for stopped callback execution

* Move stopped callback check out of execution func

* Use SimpleWorker for stopped callback test

* Call stopped callback directly in main proc

* Remove unused imports

* Fix import order

* Fix import order

* Fix death penalty class arg

* Fix worker instance init

Sorry these commits are so lazy
2 years ago
..
config_files Update cli.py to support custom loggers (#1906) 2 years ago
ssl_config Fix RQScheduler when run with SSL connection (#1383) 4 years ago
Dockerfile Typing (#1698) 2 years ago
__init__.py Update linting configuration (#1915) 2 years ago
fixtures.py Add support for a callback on stopped jobs (#1909) 2 years ago
test.json Allows enqueueing by the cli (#1466) 3 years ago
test_callbacks.py Add support for a callback on stopped jobs (#1909) 2 years ago
test_cli.py Update cli.py to support custom loggers (#1906) 2 years ago
test_commands.py Update linting configuration (#1915) 2 years ago
test_connection.py [Hotfix] Fix SSL connection for scheduler (#1894) 2 years ago
test_decorator.py Update linting configuration (#1915) 2 years ago
test_dependencies.py Add support for dependent jobs in enqueue_many (#1897) 2 years ago
test_fixtures.py Update linting configuration (#1915) 2 years ago
test_helpers.py Update linting configuration (#1915) 2 years ago
test_job.py Add support for a callback on stopped jobs (#1909) 2 years ago
test_maintenance.py Reliable queue (#1911) 2 years ago
test_queue.py Reliable queue (#1911) 2 years ago
test_registry.py Update linting configuration (#1915) 2 years ago
test_results.py Update linting configuration (#1915) 2 years ago
test_retry.py Update linting configuration (#1915) 2 years ago
test_scheduler.py Scheduler should release and heartbeat only acquired locks (#1914) 2 years ago
test_sentry.py Update linting configuration (#1915) 2 years ago
test_serializers.py Update linting configuration (#1915) 2 years ago
test_timeouts.py Update linting configuration (#1915) 2 years ago
test_utils.py Update linting configuration (#1915) 2 years ago
test_worker.py Reliable queue (#1911) 2 years ago
test_worker_pool.py Update linting configuration (#1915) 2 years ago
test_worker_registration.py Update linting configuration (#1915) 2 years ago