Skip to content

What is the "external update" meant to be for moving Pending -> available/scheduled? #579

Answered by bgentry
travisby asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @travisby, I think you’ve mostly grasped the pending state based on your prior comments. It’s a place to stage jobs that will never be worked, not until some piece of logic advances those jobs into the available or scheduled state.

As for what that logic is, it’s really up to you! Your simple query to move the job into available is indeed a way to do this given you already know the job’s ID, though I would caution you to add a WHERE state = ‘pending’ clause to it just to make sure you don’t accidentally mess with a job that already ran or is running.

A more advanced usage would be for something like “I don’t want this job to run before an external event happens, and I also don’t want i…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@travisby
Comment options

@nexovec
Comment options

@bgentry
Comment options

@travisby
Comment options

@bgentry
Comment options

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