Manage Semaphore activity library


The Manage Semaphore activity library enables you to lock the deployment activities between the processes, so that activities between different processes run in a desired order. For example, locking activities can be used for blocking processes from a build directory during one of the process built. When you enclose a process deployment activities within the semaphore lock, other processes are waiting until the process is finished and the lock is released to run their own activities. While enclosing the process activities within the semaphore lock, you add the success/failure dependancies to the deployment activities, so that when the set of the desired activities is performed successfully, the semaphore lock is released, and the next processes may start.

Note

The Manage Semaphore activity library is available starting with BMC VaraLogix Q Deployment Automation version 4.3.01.03.

Parameter

Description

Semaphore Action
  • Value=Get
    Enclose the selected deployment activity into a locked state, until the following semaphore process with the Release value is performed.
  • Value= Release
    Release the lock of the selected deployment activity to enable the following process or activities to start. 
Semaphore Name

Name of the selected semaphore lock.

Note

  • The Semaphore Name must be the same for the selected set of semaphore Get and semaphore Release activities.
  • For every opening semaphore Get activity must be a closing semaphore Release activity with the same semaphore name.
  • The semaphore lock gets automatically released if the actions were locked for 24 for hours. If you want to change the default semaphore lock timespan, go to System > Settings, and change the value of the Semaphore Default Lifespan Hr setting.

To enclose the deployment activity into the semaphore lock

  1. Add a new activity with the Manage Semaphore activity library selected.
  2. Select Get from the Semaphore Action field.
  3. Enter a semaphore name in the Semaphore Name field.
  4. Add several new deployment activities with the desired activity libraries selected.
  5. Add dependancies between the Manage Semaphore activity and other deployment activities by clicking the Add New Dependency Add New Dependency.pngicon.
  6. Add one more activity with the Manage Semaphore activity library selected.
  7. Enter the same semaphore name you entered in step 2.
  8. Select Release from the Semaphore Action field.
  9. Add a dependancy to the Manage Semaphore Release activity, so that it runs after the last activity in a set it performed successfully.

Note

If you want to add a semaphore lock between different processes, add the Manage Semaphore activity with the same semaphore name to each process. When the two processes with the same semaphore name run simultaneously, the process which started later will wait until the process which srated earlier is performed successully and is released from the semaphore lock.

Related topic

Activity-libraries

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*