Worker with embeded WorkerDefaults does not implement Worker interface #563
Answered
by
brandur
taras-turchenko-moc
asked this question in
Q&A
-
Hi guys. I have an issue with
Manually specifying func (w *Worker) NextRetry(_ *river.Job[WorkerArgs]) time.Time {
return time.Time{}
} output of go version
|
Beta Was this translation helpful? Give feedback.
Answered by
brandur
Aug 24, 2024
Replies: 1 comment 3 replies
-
Since you didn’t include your worker definition I can’t be certain, but are you by any chance embedding a pointer to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something odd is happening in your environment. I copied your code with only minor modifications and it runs fine. It might not be the worst idea to start from scratch, then add custom code back until you find out what's spurring on the error.