Community forum

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


Mark Johnson
2008-10-23T15:45:01Z
Support,

Is there any way to make a task always run last in a list of tasks for a job without renumbering the task to be last every time?[-o<

I have a job that has 130+ email tasks setups for emailing files once a day. After I email out all the files, I have one task that takes all the files and moves them to a backup location. There are a few people who add new email tasks to this process during the week and I know the final task will not always be renumbered to be last every time.

I guess I could schedule another job to run sometime after the first email job runs, but I was hoping to have it all contained in one job.

Thanks

Mark
Sponsor
Forum information
ErikC
2008-10-23T15:54:15Z
hmm, maby this will work:

two jobs, one with the email tasks and one with the archiving.
The 1st job has a task of writing a trigger file at the 1st task
The 2nd jobs is triggered by this file
In the 2nd job use a condition to check if job 1 is running, if so, run job 2 again, if not process the other tasks in the 2nd job.
In this job there should also be a task deleting the trigger file.

I think (didn't tested this) that this should work for you.

Regards,
Erik
Uses Visualcron since 2006.
Mark Johnson
2008-10-23T22:40:35Z
Erik,

Thanks. I do believe that will work.

-Mark
Scroll to Top