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.
thomas 7ea5a32a55 Alway set status 'FINISHED' when job is Successful
Method Queue#enqueue_dependents checks the status of all dependencies of all dependents, and enqueues those dependents for which all dependencies are FINISHED.

The enqueue_dependents method WAS called from Worker#handle_job_success called BEFORE the status of the successful job was set in Redis, so enqueue_dependents explicitly excluded the _successful_ job from interrogation of dependency statuses as the it would never be true in the existing code path, but it was assumed that this would be final status after the current pipeline was executed.

This commit changes Worker#handle_job_success so that it persists the status of the successful job to Redis, everytime a job completes(not only if it has a ttl) and does so before enqueue_dependents is called. This allows for enqueue_dependents to be less reliant on the out of band state of the current _successful job being handled_.
5 years ago
..
config_files RQ v1.0! (#1059) 6 years ago
__init__.py refactor: use try ImportError instead of py-version check (#1034) 6 years ago
fixtures.py Implement Customizable Serializer Support (#1219) 5 years ago
test_cli.py Job scheduling (#1163) 5 years ago
test_connection.py Fixes Job.fetch when return value is unpickleable (#1184) 5 years ago
test_decorator.py Multi Dependency Support [Internal API Changes] (#1147) 5 years ago
test_helpers.py Restored the ability to specify connection params in config 10 years ago
test_job.py Create get_dependencies_statuses method on Job 5 years ago
test_queue.py Alway set status 'FINISHED' when job is Successful 5 years ago
test_registry.py FailedJobRegistry.requeue() resets job.started_at and job.ended_at (#1227) 5 years ago
test_scheduler.py Add job status setting in enqueue_at (and in enqueue_in) methods (#1181) 5 years ago
test_sentry.py RQ v1.0! (#1059) 6 years ago
test_serializers.py Implement Customizable Serializer Support (#1219) 5 years ago
test_utils.py add milliseconds into timestamps, fix #721 7 years ago
test_worker.py Implement Customizable Serializer Support (#1219) 5 years ago
test_worker_registration.py RQ v1.0! (#1059) 6 years ago