You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FinalizedAt struct field is not set on Job for cancelled events #515
And I noticed that the FinalizedAt struct field for Job is nil when the job is cancelled. This is confusing because other parts of the code seem to suggest that Finalized includes cancelled jobs so I would expect it to be set.
I used the button in the UI in RiverUI, I'm assuming that calls JobCancel but I haven't checked. I did receive the event in the channel but got a nil pointer exception.
Thanks! This must be a scenario where the job is running on a remote node and gets cancelled, but for some reason doesn’t emit the fully updated job state.
I made a small program to replicate this issue but got a seemingly different issue, despite successfully canceling jobs I never get any events on my listener.
Activity
bgentry commentedon Aug 7, 2024
Can you confirm which mechanism you are using to cancel the job?
allancalix commentedon Aug 7, 2024
I used the button in the UI in RiverUI, I'm assuming that calls JobCancel but I haven't checked. I did receive the event in the channel but got a nil pointer exception.
bgentry commentedon Aug 7, 2024
Thanks! This must be a scenario where the job is running on a remote node and gets cancelled, but for some reason doesn’t emit the fully updated job state.
allancalix commentedon Aug 10, 2024
I made a small program to replicate this issue but got a seemingly different issue, despite successfully canceling jobs I never get any events on my listener.
https://github.com/riverqueue/river/compare/master...allancalix:river:bug-cancel-sub-events?expand=1