03-26-2013 04:30 PM - edited 03-01-2019 09:00 AM
We are in the progress of moving from Heroix to Tidal. In Heroix, we used to have a sensor to check the output file for multiple success strings, i.e. "Successfully saved report" 25 times.
In Tidal, it can only scan for normal string, and use comma for "OR" logic and plus for "AND" as I known. I've tested If I input two identical strings using plus ("Successfully saved report" + "Successfully saved report"), Tidal will scan the whole output for the first and then do the same for the second. Hence, just one string can meet the success condition.
My question is instead of spliting the jobs in order to have one success string in each job output, is there a better way to achieve this? What's the best practice of this situation in Tidal?
03-26-2013 05:25 PM
It might be helpful to know what the job does. First, I'd look at re-designing the job(s) themselves. Why does the job wait for the 25th successful report? What does it do at that point? Is there a better way to setup and run these jobs?
03-26-2013 06:08 PM
My point here is how Tidal deal with multiple identical success string. The 25 reports was just an example. Let's take another example, say I have a batch to move two directories. I want to make sure both directories are moved, so I would expect to see " 1 dir(s) moved." two times. How should I set this up in Tidal? I definitely don't want to split this job into two, because it would be redundant.
12-02-2014 03:51 PM
Hi Robin,
This is a long time ago, but I was wondering if you have come to resolution with this issue. If not, then you can try to output an iterative variable, and it increments each time a task is completed and your last process will output "Successfully saved X reports". When you setup your scan for normal string, you want to explicitly state "Successfully saved X reports" where X is the number representing the desired runs.
BR,
Derrick Au
03-26-2013 07:19 PM
Personally, I would do that type of logic in the job script.
12-20-2014 05:46 AM
My understanding is that we cannot scan for multiple strings in the job output. From the discussion here, it seems like we can. Can someone confirm ?
12-22-2014 09:40 AM
Dinesh,
Scanning multiple strings work.
"Note: You can scan job output for multiple strings. Listing multiple text strings separated by commas means any one of the listed text strings can signal that the job completed normally or abnormally. Listing text strings separated by plus signs means all of the text strings must appear in the job output to determine if the job completed normally or not. If the text strings contain commas or pluses, enclose the text string in quotation marks. You cannot mix commas and pluses together as separators"
BR,
Derrick Au
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide