Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Ben Graham
2015-05-13T12:35:48Z
This problem was raised some time ago in this post on the forum  but VC Support was unable to replicate the issue.

I am using Visual Cron 7.5.1.

I have created a job that we use to post messages to Slack (a team communications platform). We post using a cURL request to a URL with given parameters. I created the job so that the credentials could be consolidated in one place. The job takes several variables (Job Variables) like MessageText and Channel.

We had an issue that we were sometimes calling it before the last message had posted and this caused the job to not run (had "Do not start if job is already running" set). So, we set it to queue by selecting "Put Job in queue".

When we set it to queue it created an issue where it would revert to the job's default values when it got executed. I was eventually able to fix this issue by removing the "Do not start if job is already running" flag because it won't be an issue to run multiple cURL requests concurrently.

I believe that the specific problem comes from the fact that we have layered jobs being called:

Job A has many steps, and calls Job B to post to Slack several times. Job A creates an appropriate message by building up a string that includes job variables from Job A. Job A passes the string to Job B as a job variable, using the Job/Task control command.

An example of a MessageText string that Job A may pass to Job B is:
Quote:


Preparing to copy {JOB(Active,Variable,Revision)} revision of {JOB(Active,Variable,Branch)} branch of {JOB(Active,Variable,SiteName)} to {JOB(Active,Variable,DestinationServerName)} for deployment.



If Job B gets queued then when it runs it will have default values. I believe that the state of {JOB(Active,Variable,SiteName)} is not being passed as a string but instead points to the variable value, which may not be available / becomes null when the job gets to the top of the queue. Please note that this runs fine when run synchronously. In the Job/Task control I have "Translate Variables before sending" checked.
Sponsor
Forum information
Support
2015-05-26T11:52:09Z
Thanks for the information, we have passed this on to our developers.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2015-06-02T13:20:11Z
Please test this version:

http://www.visualcron.co...ts&m=21185#post21185 

Thanks for the report!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Ben Graham
2015-06-08T11:24:24Z
Awesome, thanks. I will test it soon, but we haven't switched everyone over to the latest version yet. Thank you for looking at the issue, though.
Scroll to Top