I am trying to use generic variables and jobs/task to email/log every time a job goes down.
I have 3 different environments that I'm trying to keep in sync: Test, Acceptance and Production.
Every time I take a job from my Test box to Acceptance, then Production that points to Test Oracle dbs, Test Sans and test client boxes, I have to change all my pointers in all my jobs to point to my failed tasks that email/message me when they go down. I am having to check to see what the task ID is for every job that points to the failed tasks and change it to whatever it gets set to in each of the new environments.
If I can have a generic job/task that does this, I only have to run a find/replace for the one job/task every time.
This works in every case, except when the generic variables I'm using get overwritten by concurrent running jobs. I end up getting emails/logs that don't correspond to the job that had the problem.
So if there is an easy way to force VC to only run one job at a time, I won't have to worry about this problem.
To implement your suggestion, I'd have to check the variable, then reset it at the end of the job AND I would have to have a way of requeueing the job to try again after a given time so that eventually it runs.
Edited by user
2012-10-23T16:58:02Z
|
Reason: Not specified