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


drewplayq
2016-08-23T15:50:12Z
I find myself spending a lot of time fiddling with lots of little settings ("flow", "conditions", "On Error") for what I imagine to be common things.

For example - I'd like to test an HTTP website to ensure it returns a specific string to ensure it is up and running properly. There are a lot of edge cases, dns resolution and time-outs, etc that I'm trying to ensure I account for.

I also have about a dozen sites I'd like to test - so setting it up as a template of some sort, where I could pass the url and the text to search for as parameters seems like a smart thing to do.

All of this seems prone to error and a lot of work for something so common. Are there any guides to configuring common tasks or temples of common things I could import instead of trying to create them on my own?

Thanks,
Drew
Sponsor
Forum information
Support
2016-08-25T07:43:04Z
Internally you can copy/clone Tasks between Jobs.

But for more complex cases we plan to have a global repository for .NET code. This way code that do something interesting can be easily shared between users.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2019-04-30T08:00:09Z
jrtwynam
2019-04-30T17:26:50Z
What you could do, at least for this example, is create a single job (call it "Job A") that contains all of your "little settings" like flow, conditions, etc. This job can have a job variable for the URL and another one for the specific text you want to search for. Then, create a separate job for each of the dozen sites you have ; each of these jobs would simply execute Job A with different parameters passed into the job variables. If some of these sites have, say, different DNS timeouts, then you could also pass that into Job A as a job variable.

If you were to execute them all at the same time though, you may run into issues with pulling back whatever results you need from Job A back to the calling job (eg of both Job B and Job C execute at the same time, and therefore call Job A at the same time, and then try to reference Job A's variables, I'm not sure if Job C would get some results that actually pertain to Job B, or something like that). To combat this, what you could do is pass a Run ID of some sort (eg the calling job name plus the current timestamp, "Job_B_20190430132301"). Have Job A export the results into a text file named based on the Run ID, and have the calling job read the results from that text file. If the results are "good", you could then delete the text file.

Just a thought. I'm not sure if this is the best way to handle this or not, but it should work.
Scroll to Top