Provide a Wait/Lock like construct in the Build Worker API for use across multiple concurrent jobs

matt_mckinstry's Avatar

matt_mckinstry

22 Jun, 2018 07:46 AM

Scenario:
Subscription has multiple concurrent jobs, Project has a build matrix with 5 configurations to build e.g. spawns 5 build jobs.
The first build job makes changes to files in source control that all other build jobs should wait for prior to cloning and continuing build.

It is possible to roll your own version of this using powershell and some form of remote file or db storage. However, i feel it would be a great feature to add to the Build Worker API, obviously scoped to the current build.

Add-AppveyorWaitLock -Name <string> -Details <string>
Details param would allow some useful information to be shared amongst build jobs

<string> Get-AppveyorWaitLock -Name <string> -Wait <int> -RetryCount <int>
Returns Details
Internally this would Sleep/Retry until the lock is found, or Fail the build if it exceeds the RetryCount

  1. Support Staff 1 Posted by Ilya Finkelshte... on 26 Jun, 2018 03:36 AM

    Ilya Finkelshteyn's Avatar

    Thank you for this scenario. Please watch this issue

  2. Support Staff 2 Posted by Ilya Finkelshte... on 26 Jun, 2018 03:39 AM

    Ilya Finkelshteyn's Avatar

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac