How to detect both Finalbuilder.exe and FBCMD.exe executions

With our packages, they can take for my part of the build anywhere from 20 minutes to 8 hours to build the packages.  Right now I stamp the registry when something is running.  If I see it complete or catch the failure.  I mark that stamp as complete.  Sometimes if the failure basically fails the job and does not get to catch the failure, the stamp is not reverted to complete.  I then have other jobs that sit there pending until the stamp is marked to complete.

I want to add code in the checks to see if that project is the only project executing either via Finalbuilder IDE or CMD line, and if it is to move the stamp to complte so the async group will execute.  Is there a better way to perform this?

I was trying to use the process iterate and mark if multiples instance are excute with a failed, and then peform an ignore failed with and else to do this.  This will work for the current build process that is is running in, but I also need to check to see if the opposite is executed.

These are different projects in different folders that are executing.

A side note is then how do I stage a process to execute if it wants to execute another sequence of this current process that is running?  Right now I am doing this with a vbscript on the outside and hope to transition this to Finalbuilder Server if I can get different OS machines to launch the projects.

Dennis

 

Hi Dennis

You could use the Mutex/Lock File action, although to be honest I’m not 100% sure I understand what you are trying to achieve.

Our build process can run etiher in GUI mode or CMD mode.  But we can only have it stage one job at a time since it takes a long time to run.  Since the machines do not have people sitting at them I wanted to make sure that if no other projects are running between them that it can invoke the process to build that project, but fi there is a process running it has to wait before this project starts its build process.  I got it to work with the FBCMD.exe process check for more then one, or with the Finalbuilder5.exe process the same way but I was looking at if there was a way to check if either process is running.

 

We stamp our registry and the jobs will wait for that stamp to change to complete before the next one starts.  If for some reason it does not go back say a failed job, I want to make sure that the next project can detect and change it if required, "No Manual intervention!"

I hope you understand this now.