-
Notifications
You must be signed in to change notification settings - Fork 43
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
Last persisted job appears to run twice (before and after app restart) #375
Comments
It seems to happen due to the last job being removed only after app restart. This can be verified by first running jobs with ids 1, 2, then with 3, 4. Job 2 is present in both executions. |
I know that i'ts already more than two years, but I have exact same problem. Job is added to queue and i'ts finished, but when I restart the app, there is exactly same job in queue again. Is there any way how to fix it? |
Was the job removed from the data store that persist the job ? Can you confirm ? |
If I am undrstand it correctly, job should should automaticly removed from the persister after is finished? Because I think this the problem, job is not removed from persister. |
@DEV1ANT7 Any reason why it's not removed ? Are you using the default persister ? |
👋
I'm having a problem with duplicate job runs after app startup when the job is persisted:
Repro: https://gist.github.com/ruslandoga/425765b892605c426f55b7c02683bace
Version: SwiftQueue (5.0.2)
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: