Skip to content

Do not make the workflow fail when a job cannot be created #33

@josecelano

Description

@josecelano

Imported from: https://github.com/josecelano/library-consumer/issues/13

The Queue class throws an Error when it can't create a new job because there is already a pending job.

image

Error: https://github.com/josecelano/library-consumer/runs/5049353803?check_suite_focus=true#step:7:9

Code: https://github.com/josecelano/library-consumer/blob/main/.github/actions/git-queue/src/queue.ts#L72

I think we should just return the empty job (because it was not created) and let the workflow to handle the situation. In general, I do not like the workflows to fail, I do not think this is an exception. We just need to wait and try it later because the queue was "full".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions