Are job variables expected to remain consistent when running asynchronously? - VisualCron - Forum

Community forum

Luke Saunders
2022-01-07T16:39:27Z
If Job A has a loop that sets Job B job variables and then runs Job B in several threads asynchronously, are the multiple threads of Job B expected to keep consistent Job variables?

I'm using VC version 9.7.5 and set up this model. With just 2 threads of Job B running I had no issues. When it was upped to 8 threads, after a couple hours there was a run where 4 out of the 8 threads all had the same value in a job variable that should have been unique. Is this a bug or is this expected with async?
Support
2022-01-12T12:42:27Z
Originally Posted by: Luke Saunders 

If Job A has a loop that sets Job B job variables and then runs Job B in several threads asynchronously, are the multiple threads of Job B expected to keep consistent Job variables?

I'm using VC version 9.7.5 and set up this model. With just 2 threads of Job B running I had no issues. When it was upped to 8 threads, after a couple hours there was a run where 4 out of the 8 threads all had the same value in a job variable that should have been unique. Is this a bug or is this expected with async?



Hi Luke,

Are you able to provide a sample job of this that we can reproduce the issue with and send it to support@visualcron.com?
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Luke Saunders
2022-01-12T20:33:08Z
Job sample, logs, screenshots, and explanation sent to support address. Thanks Michael.
Support
2022-01-14T15:53:12Z
Originally Posted by: Luke Saunders 

Job sample, logs, screenshots, and explanation sent to support address. Thanks Michael.



Thank you, will get back to you once we reviewed this.
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scroll to Top