Skip to content

api: add a distinct 'prepared' state for pull-labs jobs - #3241

Open
Hao-Chen2337 wants to merge 1 commit into
kernelci:mainfrom
Hao-Chen2337:prepared-state
Open

Hao-Chen2337 wants to merge 1 commit into
kernelci:mainfrom
Hao-Chen2337:prepared-state

Conversation

@Hao-Chen2337

Copy link
Copy Markdown

Pull-labs jobs currently reuse available for both "awaiting pickup" and "result ready", so the results pipeline can submit a job that has not run yet (its result reaches KCIDB as status: NULL).

Add a dedicated prepared state:

  • StateValues.PREPARED
  • allow running -> prepared and prepared -> running / prepared -> done

Pull-lab workers poll for jobs in prepared; available is reserved for "results actually available".

Link: #3124

Pull-labs jobs now wait for pickup in a dedicated 'prepared' state
instead of overloading 'available', which meant results could be
submitted before a job had run.

Link: kernelci#3124

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant