Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline hjohnson  
#1 Posted : Friday, August 9, 2019 5:37:06 PM(UTC)
hjohnson

Rank: Paid support

Joined: 3/23/2017(UTC)
Posts: 29
United States
Location: Wisconsin, Eau Claire

Thanks: 2 times
Hello,

I have a job that is triggered based on a remote file. There are 2 that are being downloaded. The job triggers, downloads both files and runs the job like it should. Once it reaches the last task in the job, it triggers again. This then causes a failure as there are no files to download or process.

The issue is, I am doing the same thing on another job and it is not triggering again at the end.

Why would one be so drastically different than the other?

Job that re-triggers after last task:
*the set job variable task is looping through the files listed in the task before it as we only want to process one file at a time.
*Also, the loop does not change the outcome when it comes to the trigger going off a second time upon completion of the last task in the job. I have tried with and without the loop.
*The wait was added as a way to make sure files were fully archived before continuing on. This did not fix the issue of re-triggering.
job1.JPG

Job that does not re-trigger:
Job2.JPG
Offline Support  
#2 Posted : Monday, August 12, 2019 12:27:08 PM(UTC)
Support

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 96

Thanks: 15 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: hjohnson Go to Quoted Post
Hello,

I have a job that is triggered based on a remote file. There are 2 that are being downloaded. The job triggers, downloads both files and runs the job like it should. Once it reaches the last task in the job, it triggers again. This then causes a failure as there are no files to download or process.

The issue is, I am doing the same thing on another job and it is not triggering again at the end.

Why would one be so drastically different than the other?

Job that re-triggers after last task:
*the set job variable task is looping through the files listed in the task before it as we only want to process one file at a time.
*Also, the loop does not change the outcome when it comes to the trigger going off a second time upon completion of the last task in the job. I have tried with and without the loop.
*The wait was added as a way to make sure files were fully archived before continuing on. This did not fix the issue of re-triggering.
job1.JPG

Job that does not re-trigger:
Job2.JPG


Hi,

Could you enable "Extended trigger debugging" on the jobs, then email us the logs? Right-click on the tray icon, chose Server->Open log folder and send us the "log_serverDATE" to support@visualcron.com

Also, send us screenshots of your trigger settings

Edited by user Monday, August 12, 2019 12:37:20 PM(UTC)  | Reason: Not specified

Michael
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline Joey S  
#3 Posted : Monday, August 12, 2019 10:44:01 PM(UTC)
Joey S

Rank: Free support

Joined: 3/26/2018(UTC)
Posts: 7
United States
Location: North Dakota, Grand Forks

Was thanked: 2 time(s) in 2 post(s)
You might be getting a temp file during the process which will re-trigger the whole thing.

The easiest way to verify would be to create a separate job that is also triggered the same way the first job is set.

In this new job, create one task to output the triggered file name to a file somewhere and see what is actually triggering it. This has happened to me before and, for different folders/triggers/file types, I have had to set the "Exclude File Mask".

trigger.png
thanks 1 user thanked Joey S for this useful post.
Support on 8/13/2019(UTC)
Offline hjohnson  
#4 Posted : Monday, August 12, 2019 10:47:53 PM(UTC)
hjohnson

Rank: Paid support

Joined: 3/23/2017(UTC)
Posts: 29
United States
Location: Wisconsin, Eau Claire

Thanks: 2 times
I am trying what support mentioned above, first. I am waiting for the job to run after turning on the "Extended Trigger Debugging". If that isn't conclusive, I will try your suggestion.

Thanks!
Offline Support  
#5 Posted : Tuesday, August 13, 2019 10:41:49 AM(UTC)
Support

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 96

Thanks: 15 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: hjohnson Go to Quoted Post
I am trying what support mentioned above, first. I am waiting for the job to run after turning on the "Extended Trigger Debugging". If that isn't conclusive, I will try your suggestion.

Thanks!


Keep us updated with how it goes.
Michael
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline hjohnson  
#6 Posted : Tuesday, August 13, 2019 5:29:37 PM(UTC)
hjohnson

Rank: Paid support

Joined: 3/23/2017(UTC)
Posts: 29
United States
Location: Wisconsin, Eau Claire

Thanks: 2 times
Michael,

I have just sent you the requested log and screen shots, as the job ran this morning.

Thank you!
Offline Support  
#7 Posted : Wednesday, August 14, 2019 10:21:23 AM(UTC)
Support

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 96

Thanks: 15 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: hjohnson Go to Quoted Post
Michael,

I have just sent you the requested log and screen shots, as the job ran this morning.

Thank you!


Great. Troubleshooting continues via e-mail.
Michael
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline Joey S  
#8 Posted : Tuesday, August 20, 2019 10:22:52 PM(UTC)
Joey S

Rank: Free support

Joined: 3/26/2018(UTC)
Posts: 7
United States
Location: North Dakota, Grand Forks

Was thanked: 2 time(s) in 2 post(s)
The other thing you could check, if you are waiting on both files AND both files need to exist, is to make sure you do not have an active trigger for EITHER file. Your job may be:
1. trigger 1-> file 1 exists - then run tasks 1-5 (for example)
2. trigger2 -> file 2 exists - then run tasks 1-5

If you have it setup like that then it will run twice because ALL (both in this case) of your triggers fired so one job run for each trigger firing.

You can set a dependency on the triggers so BOTH have to fire and if/when they both do fire, they act as one trigger.

Offline hjohnson  
#9 Posted : Tuesday, August 20, 2019 10:39:55 PM(UTC)
hjohnson

Rank: Paid support

Joined: 3/23/2017(UTC)
Posts: 29
United States
Location: Wisconsin, Eau Claire

Thanks: 2 times
Originally Posted by: Joey S Go to Quoted Post
The other thing you could check, if you are waiting on both files AND both files need to exist, is to make sure you do not have an active trigger for EITHER file. Your job may be:
1. trigger 1-> file 1 exists - then run tasks 1-5 (for example)
2. trigger2 -> file 2 exists - then run tasks 1-5

If you have it setup like that then it will run twice because ALL (both in this case) of your triggers fired so one job run for each trigger firing.

You can set a dependency on the triggers so BOTH have to fire and if/when they both do fire, they act as one trigger.



I only have 1 trigger that has wild cards in it to accommodate the 2 files names as they are only slightly different. But, maybe making 2 and using your suggestion will help. So far, the above suggestions have not changed anything in the process.

Thank you!
Offline Support  
#10 Posted : Wednesday, August 21, 2019 11:21:36 AM(UTC)
Support

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 96

Thanks: 15 times
Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: hjohnson Go to Quoted Post
Originally Posted by: Joey S Go to Quoted Post
The other thing you could check, if you are waiting on both files AND both files need to exist, is to make sure you do not have an active trigger for EITHER file. Your job may be:
1. trigger 1-> file 1 exists - then run tasks 1-5 (for example)
2. trigger2 -> file 2 exists - then run tasks 1-5

If you have it setup like that then it will run twice because ALL (both in this case) of your triggers fired so one job run for each trigger firing.

You can set a dependency on the triggers so BOTH have to fire and if/when they both do fire, they act as one trigger.



I only have 1 trigger that has wild cards in it to accommodate the 2 files names as they are only slightly different. But, maybe making 2 and using your suggestion will help. So far, the above suggestions have not changed anything in the process.

Thank you!

I sent you another email to follow up on if you'd like to continue troubleshooting your issue via mail. It's good that you've tested the suggestions in this thread though! Then we can rule certain things out if testing those did not change the outcome anything.
Michael
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top