Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-job queue: allow more than 1 pending job in the queue #30

Closed
josecelano opened this issue Feb 9, 2022 · 0 comments
Closed

Multi-job queue: allow more than 1 pending job in the queue #30

josecelano opened this issue Feb 9, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@josecelano
Copy link
Member

josecelano commented Feb 9, 2022

Depends on: #38

Right now the queue only allows one pending job. If there is a not finished job the queue does not allow adding more jobs. We want to allow N jobs in the queue.

In order to implement this feature we need to add an extra input to the action when we use the finish-job or other action that might require the job id:

- name: Mark job as finished
  id: finish-job
  if: ${{ steps.create-job.outputs.job_created == 'true' }}
  uses: ./
  with:
    git_repo_dir: ${{ runner.temp }}/temp_git_dir
    queue_name: 'Library Update [library-aaa]'
    action: 'finish-job'
    job_payload: '{"field": "value", "state": "finished", "job_id": 15}'
    job_id: 15

Notice the new input job_id: 15

@josecelano josecelano added the enhancement New feature or request label Feb 11, 2022
yeraydavidrodriguez added a commit that referenced this issue May 20, 2022
yeraydavidrodriguez added a commit that referenced this issue May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants