-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add AcceptJob #259
Add AcceptJob #259
Conversation
903af53
to
08523a9
Compare
@seita-uc Thank you for the PR, it looks great! Just one thing: could we avoid the usage of psql here if you tried the custom The function can be found here: datastore/gorm/transaction.go An example usage can be found here: keys/store_gorm.go#L55 It should be a drop-in replacement for the |
Note: we just removed the |
@latenssi Thank you for review! I missed the change of refactoring transactions so I'm gonna fix to follow the existing implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you @seita-uc
Related to #241 #94
Added
AcceptJob
to job store which updates job asACCEPTED
in transaction.This feature will prevent jobs from being executed multiple times concurrently.