-
Notifications
You must be signed in to change notification settings - Fork 93
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
v0.12.0 all tasks go to the status discarded with InsertTx
#618
Comments
I’m not clear on what’s happening or what actually fixed it. You’re saying that you were using insert time I don’t think the |
I remember that there were no attempts, the task was never completed, it immediately crashed with the “discarded” status. At the same time, an error with “discarded” was recorded in the meta. Also, the new column with the unique state was also filled with a bit mask. In other words, the task crashed with an error on uniqueness. I will be able to reproduce this only tomorrow. And I did not check whether the uniqueness works now or not, when I specified the method in the worker. at the same time, all the arguments are absolutely unique |
@sxwebdev I've found at least one bug here that's new to v0.12.0. While I've fixed that one locally, I'm working on additional test cases and making sure all edge cases are covered. Hope to have something up shortly. |
@bgentry thank you, waiting for the release |
@bgentry Hi. I just rolled back my changes. Removed this: func (s *Worker) InsertOpts() river.InsertOpts {
return river.InsertOpts{
UniqueOpts: river.UniqueOpts{
ByArgs: true,
},
}
} Returned this: riverClient.InsertTx(ctx, dbTx,
taskmanager.SomeArgs{
Key: value,
},
&river.InsertOpts{
UniqueOpts: river.UniqueOpts{
ByArgs: true,
},
ScheduledAt: time.Now().Add(time.Second*30),
},
) And updated the river to In other words, I did it as it was before. Now everything works as before version |
After upgrading to version 0.12.0 all my new tasks created in the following way:
Began to be marked in the database with the status "discarded"
This problem was solved only in this way:
It looks like unique parameters are ignored at the task creation level.
Before updating to version 0.12.0, I rolled out migrations from scratch
The text was updated successfully, but these errors were encountered: