Skip to content

Paused jobs can block unpaused jobs #994

Closed

Description

@jmcarp

If there are two jobs in the same serial group, and the second job is paused, then a pending build on the second job blocks builds on the first job. Here's a simple example:

jobs:
- name: one
  serial_groups: [ser]
  plan:
  - task: one
    config: &config
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: alpine
      run:
        path: echo
        args: ["hi"]
- name: two
  serial_groups: [ser]
  plan:
  - task: two
    config: *config
fly -t ci set-pipeline -p test-pausing -c pipeline.yml
fly -t ci unpause-pipeline -p test-pausing
fly -t ci pause-job -j test-pausing/two
fly -t ci trigger-job -j test-pausing/two
fly -t ci trigger-job -j test-pausing/one

From this situation, job one can never run until job two is unpaused, or until the pending build of job two is canceled. @LinuxBozo and I noticed this and found it to be counterintuitive--we would expect a paused job not to count against in-flight for a serial group.

Activity

  1. concourse-bot commented on Mar 31, 2017

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. chendrix commented on Apr 14, 2017

    @chendrix
    Contributor

    Is this the same as #520 ?

  3. LinuxBozo commented on Apr 14, 2017

    @LinuxBozo
    Contributor

    @chendrix It appears that it might be, but the above is a definitive test case, which the other issue seems to lack at this time.

  4. anEXPer commented on Apr 14, 2017

    @anEXPer

    Absolutely, thank you for the definitive/explicit test case. If this is consolidated into other, let's please make sure that the test case comes along.

  5. chendrix commented on Apr 14, 2017

    @chendrix
    Contributor

    Absolutely. I will close this (just to keep things tidy and in one place) and make an explicit comment on the other one.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions