Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46744

Jobs waiting to lock resource could be searching for newly added resources

XMLWordPrintable

      It would be nice feature if we could on the fly add resources, which would be visible to jobs while they are already waiting for resources with specified label to lock.
      So, if a new resource added, matches the requirements, the resource should be acquired normally, even if it was added after job started.

      CURRENT BEHAVIOR

      Resources added after job started polling for resources to lock, are not visible to the job.

      EXAMPLE

      Timestamp 1: Job A starts and tries to lock resource with label `resource-A`. No such resource is available thus it waits in this state.

      Timestamp 2: We decide that we can add a new resource with label `resource A` to our resources. (Or add the label `resource-A` to an existing resource that is free)

      Timestamp 3: Job A should be able to identify that resource-A is now available and lock it.

            Unassigned Unassigned
            kkoukiou Katerina Koukiou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: