Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Add RetryJob exception to force a job retry #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add RetryJob exception to force a job retry #24

wants to merge 1 commit into from

Conversation

mikeyk
Copy link

@mikeyk mikeyk commented Jun 11, 2012

Our current strategy for retrying work that fails because of transient issues (eg a DB error) is to sys.exit the worker and thus force gearman to retry the job. To avoid having to re-import and re-start the Python process, we added a custom Exception that can be thrown if the job is known to have failed for transient reasons.

…ction from gearman server & subsequent job retry
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant