All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #106 (new enhancement)

Opened 9 years ago

Prevent simultaneous deployments

Reported by: bjorn@… Owned by: bjorn@…
Priority: major Component: DeploymentWizard
Keywords: Cc:


The wizard should prevent multiple users from deploying the same component (module, web application) simultaneously to the same target.

One way of achieving this could be to create a timestamp lock-file on the target root when deployment process is initiated (i.e. even before the backup starts). The file could contain information about the component (name, version), date, time, user.

If the file already exists, stop deployment, display message to user (with component already being installed, who is installing it, etc). If the file doesn't exist, create it, deploy, and DELETE the file at the end.

The only thing I'm concerned about here is how to GUARANTEE that the lock-file is deleted at the end of the deployment (what if the machine crashes, the process is interrupted, or similar). If this is hard to guarantee, an alternative can be to not actually prevent simultaneous deployment, but rather warn about it, giving the user the option to ignore the warning...

Note: See HelpUser/Tickets for help on using tickets.