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

One jobId with two entries of same parameter name in db #360

Open
infinelilux opened this issue May 3, 2024 · 1 comment
Open

One jobId with two entries of same parameter name in db #360

infinelilux opened this issue May 3, 2024 · 1 comment

Comments

@infinelilux
Copy link

We get an exception, because we somehow have two entries for the same jobid with the same name in our hangfire db, table jobparameter.
So the upsert in PostgreSqlConnection does not seem to be atomic.

When reading via PostgreSqlConnection.GetJobParameter method with querysingleordefault it now throws an Exception.
Should there be a unique constraint for columns {jobid, name} in table jobparameter?

@azygis
Copy link
Collaborator

azygis commented May 3, 2024

Interesting. Indeed there should be a unique constraint. Is it a custom parameter or any of the built-ins? Can you share whar these parameters are?

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

No branches or pull requests

2 participants