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


cstump
2010-07-26T22:51:36Z
I am either misinterpreting how conditions work or just doing soemthing dumb.


I have a simple job I am using to test my problem. See attached zip file.

Basically:
- Download a file
- if file download succeeded, goto the "Abort" task which sends an email and then writes a "completion" message to a file (tasks 4 and 5)
- Otherwise write some output to a file (tasks 2 and 3)
- finally, send an email and write "completion" message to a file (tasks 4 and 5)

The attahced flowchart appears correct. See attached.

The problem isinstead of exiting after the final task (task 5, "log completion") the job starts runnign again with the first task and keeps runnign until I manually stop it.

I ran it with debug enabeld and the results are even more confusing to me:

7/26/2010 4:48:22 PM Info Job started: Test
7/26/2010 4:48:22 PM Info User "VisualCron Default Admin" - Ran Job: Test
7/26/2010 4:48:22 PM Info Skipping Condition check because the Job was run manually.
7/26/2010 4:48:22 PM Info Task started: Check For File (374)
7/26/2010 4:48:22 PM Info Task completed: Check For File (374)
7/26/2010 4:48:22 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:22 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:22 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:22 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:22 PM Info Task started: Abort (375)
7/26/2010 4:48:23 PM Info Task completed: Abort (375)
7/26/2010 4:48:23 PM Info Task started: log completion (376)
7/26/2010 4:48:23 PM Info Task completed: log completion (376)
7/26/2010 4:48:23 PM Info Task started: Check For File (377)
7/26/2010 4:48:23 PM Info Task completed: Check For File (377)
7/26/2010 4:48:23 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:23 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:23 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:23 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:23 PM Info Task started: Abort (378)
7/26/2010 4:48:23 PM Info Task completed: Abort (378)
7/26/2010 4:48:23 PM Info Task started: log completion (379)
7/26/2010 4:48:24 PM Info Task completed: log completion (379)
7/26/2010 4:48:24 PM Info Task started: Check For File (380)
7/26/2010 4:48:24 PM Info Task completed: Check For File (380)
7/26/2010 4:48:24 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:24 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:24 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:24 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:24 PM Info Task started: Abort (381)
7/26/2010 4:48:24 PM Info Task completed: Abort (381)
7/26/2010 4:48:24 PM Info Task started: log completion (382)
7/26/2010 4:48:24 PM Info Task completed: log completion (382)
7/26/2010 4:48:24 PM Info Task started: Check For File (383)
7/26/2010 4:48:24 PM Info Task completed: Check For File (383)
7/26/2010 4:48:24 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:24 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:24 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:24 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:24 PM Info Task started: Abort (384)
7/26/2010 4:48:25 PM Info User "VisualCron Default Admin" - Tries to kill/stop processes from specified Job (Test)
7/26/2010 4:48:25 PM Info Task process was aborted by user.
7/26/2010 4:48:25 PM Info Task completed: Abort (384)
7/26/2010 4:48:25 PM Info Job completed: Test


Here are some other relevant screen shots as well.

Any help would be greatly appreciated.

Also, ff anybody has any relatively complex examples of control flow that they would not mind sharing, that woudl be greatly appreciated as well.

Regards,

Chuck
File Attachment(s):
TestJob.zip (5kb) downloaded 48 time(s).
cstump attached the following image(s):
Sponsor
Forum information
cstump
2010-07-29T21:52:22Z
Any thoughts on why this job is looping?
Support
2010-07-30T11:11:41Z
It is hard to say. I am missing a Job which a Task points to OnError so I don't know what that Task do. We had to do some change to the Client to view your Job because the missing Task caused some errors.

I would deselect one Condition at a time to see which one is causing the loop.

Does it loop when files are 0 or 1?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cstump
2010-08-09T20:21:10Z
loops in either case......

I completely deleted the job and recreated it from scratch and thing s work.....odd
Support
2010-08-09T20:57:41Z
That are good news anyway 🙂
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
buzzlightyear
2011-02-24T08:38:52Z
I also have a loop under certain conditions. It seems that if you have a condition on the last task that executes, that condition must specify Exit and not Continue as the action.
Scroll to Top