Skip to content

What is the job's state machine #819

Answered by bgentry
chenyanchen asked this question in Q&A

You must be logged in to vote

The states are documented in the Go code: https://pkg.go.dev/github.com/riverqueue/river/rivertype#JobState

  • Jobs in pending will never be worked or deleted unless moved out of this state by the user. River Pro does this for some use cases or you can write your own code for it if you have a specific use case. Most users won’t utilize this state themselves—it’s an advanced feature.
  • The job scheduler moves jobs to available as their scheduled time approaches.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@chenyanchen

Answer selected by chenyanchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants