Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce uniqueness of job names #27

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ChaoticBoredom
Copy link

As was discussed briefly in PR #22 we should probably enforce uniqueness of jobs being passed to clockwork. Non-unique names could potentially cause confusion when debugging, and when the expectation is that the name is unique.

NOTE

This does not change the behaviour of the DatabaseEvents, beyond ignoring the new flag being passed. I am admittedly not familiar enough w/ DatabaseEvents to say whether this is a desirable change or whether this works w/ the current implementation of DatabaseEvents. Help in that area would be greatly appreciated :)

@darena
Copy link

darena commented Oct 24, 2017

In my application, I set a unique constraint on the name column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants