rq/tests
Selwin Ong 3c89f9dada
Job with multiple executions (#1964)
* Initial work on Execution class

* Executions are now created and deleted when jobs are performed

* Added execution.heartbeat()

* Added a way to get execution IDs from execution registry

* Job.fetch should also support execution composite key

* Added ExecutionRegistry.get_executions()

* execution.heartbeat() now also updates StartedJobRegistry

* Added job.get_executions()

* Added worker.prepare_execution()

* Simplified start_worker function in fixtures.py

* Minor test fixes

* Black

* Fixed a failing shutdown test

* Removed Execution.create from worker.prepare_job_execution

* Fix Sentry test

* Minor fixes

* Better test coverage

* Readded back worker.set_current_job_working_time()

* Reverse the order of handle_exception and handle_job_failure

* Fix SSL test

* job.delete() also deletes executions.

* Set job._status to FAILED as soon as job raises an exception

* Exclusively use execution.composite_key in StartedJobRegistry

* Use codecov v3

* Format with black

* Remove print statement

* Remove Redis server 3 from tests

* Remove support for Redis server < 4

* Fixed ruff warnings

* Added tests and remove unused code

* Linting fixes
2023-11-03 17:05:59 +07:00
..
config_files Update cli.py to support custom loggers (#1906) 2023-05-18 07:04:57 +07:00
ssl_config Fix RQScheduler when run with SSL connection (#1383) 2020-11-27 07:27:30 +07:00
Dockerfile Store project metadata in pyproject.toml (PEP 621) (#1952) 2023-07-09 17:34:25 +07:00
__init__.py [Tests] Only run SSL tests in Docker (#1918) 2023-05-23 14:24:55 +07:00
fixtures.py Job with multiple executions (#1964) 2023-11-03 17:05:59 +07:00
test.json Allows enqueueing by the cli (#1466) 2021-08-20 13:43:06 +07:00
test_callbacks.py Fix bug with stopped callback in enqueue_many (#1954) 2023-07-19 10:46:48 +07:00
test_cli.py Update cli.py to support custom loggers (#1906) 2023-05-18 07:04:57 +07:00
test_commands.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_connection.py [Hotfix] Fix SSL connection for scheduler (#1894) 2023-05-05 14:25:20 +07:00
test_decorator.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_dependencies.py Add support for dependent jobs in enqueue_many (#1897) 2023-05-21 09:41:07 +07:00
test_executions.py Job with multiple executions (#1964) 2023-11-03 17:05:59 +07:00
test_fixtures.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_helpers.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_job.py Job with multiple executions (#1964) 2023-11-03 17:05:59 +07:00
test_maintenance.py Reliable queue (#1911) 2023-05-18 18:01:01 +07:00
test_queue.py Don't use `os.setsid()` after forking workhorse (#1970) 2023-09-23 17:35:29 +07:00
test_registry.py Job with multiple executions (#1964) 2023-11-03 17:05:59 +07:00
test_results.py Add result blocking (#1939) 2023-06-21 08:53:42 +07:00
test_retry.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_scheduler.py Scheduler should release and heartbeat only acquired locks (#1914) 2023-05-18 06:59:51 +07:00
test_sentry.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_serializers.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_timeouts.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_utils.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_worker.py Job with multiple executions (#1964) 2023-11-03 17:05:59 +07:00
test_worker_pool.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00
test_worker_registration.py Update linting configuration (#1915) 2023-05-17 23:19:14 +07:00