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.


ErikC
  •  ErikC
  • Paid support Topic Starter
2012-04-02T13:44:00Z
Hi,

Today I have an issue with a job and file write notifications on his tasks.
The file notification, named: 'TAAK log naar f:\jobs\log\[jobnaam].txt', writes to this file:

{JOB(Active,Name)}-{DATEFORMAT(yyyyMMdd)}.txt


And the body is:

{TASK(Active,Name)}
Result:         {TASK(Active,Result)}
Last run:       {TASK(Active,LastRun,M/d/yyyy h:mm:ss.ff tt)}
Last exited:    {TASK(Active,LastExited,M/d/yyyy h:mm:ss.ff tt)}
Execution time: {TASK(Active,ExecutionTime)} seconds
------------------------------------------------------------------------------------------------------------------
Output:
{TASK(Active,StdOut)}
---------------
Error output:
{TASK(Active,StdErr)}
------------------------------------------------------------------------------------------------------------------


This notification is bound to the notify on complete of the tasks.
It will end as a logfile with the job name and all the task information.
😎

The job had three tasks: 1) copy file, 2) copy file, 3) rename file.
Every task had the notification.
I deleted task 2 and 3 so I have now just one task in the job.

Now when my job is triggerd by a file trigger I see in my log file the file notification of task 1 AND 2. There is no 2nd task anymore
I checked the log from VisualCron and I see the name of the deleted task in there. It is still running..
😕 😕 😕

The deleted 2nd task is COPY TO TEMP:

4/2/2012 2:50:40 PM	Debug	Calling GetNextTaskProcess()
4/2/2012 2:50:40 PM	Debug	Next Task is: COPY TO TEMP
4/2/2012 2:50:40 PM	Debug	Next action: ActionContinue
4/2/2012 2:50:40 PM	Debug	Calling StartTaskProcess() with Task: COPY TO TEMP
4/2/2012 2:50:40 PM	Debug	Task (673295) was added to processlist: COPY TO TEMP
4/2/2012 2:50:40 PM	Debug	Running File Notification: 'TAAK log naar  f:\jobs\log\[jobnaam].txt'
4/2/2012 2:50:40 PM	Info	Task started: COPY TO TEMP (673295)
4/2/2012 2:50:40 PM	Debug	Process status - process has already exited at WaitForExit
4/2/2012 2:50:40 PM	Debug	Exception was ignored due to OnError setting (NoFilesCopied), ex: No file(s) copied
4/2/2012 2:50:40 PM	Info	Task completed: COPY TO TEMP (673295)
4/2/2012 2:50:40 PM	Debug	Process status - About to RemoveTaskProcess (673295)
4/2/2012 2:50:40 PM	Debug	Setting previous task in TaskProcessCompleted: COPY TO TEMP (088a4a45-ea8f-4785-9b55-909b5c3167cc) in job: 1. VertrekkendeClient_xxx-to-xxx


Here is the log from my file notification:
------------------------------------------------------------------------------------------------------------------
xxx-to-xxx
Result:         Success
Last run:       4/2/2012 2:50:40.57 PM
Last exited:    4/2/2012 2:50:40.63 PM
Execution time: 0.07 seconds
------------------------------------------------------------------------------------------------------------------
Output:
\\xxx\xxx\xxx\xxx.txt	->	\\xxx\xxx\xxx\xxx.txt	OK

---------------
Error output:

------------------------------------------------------------------------------------------------------------------
COPY TO TEMP
Result:         Success
Last run:       4/2/2012 2:50:40.69 PM
Last exited:    4/2/2012 2:50:40.73 PM
Execution time: 0.04 seconds
------------------------------------------------------------------------------------------------------------------
Output:

---------------
Error output:


I restarted the client to see if there is an issue with the client.
Client is not showing the 2nd task anymore and I am sure I deleted two tasks.

I'm flabbergasted.

Regards
Erik
Uses Visualcron since 2006.
Sponsor
Forum information
Support
2012-04-02T14:11:30Z
This is indeed strange.

But is the deleted Task running? Because if it does not run there is no way the File Notification can execute.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2012-04-03T06:59:14Z
Hi,

The 2nd (deleted) task had an on error setup to continue always and don't give any errors. The task itself doesn't do anything because the file it needs to copy is deleted by the 1st task.

I think I'm going to restart the server today to see if this changes anything.
Otherwise I'm thinking to delete the job and recreate it.

I'm also going to check the jobs.xml to see if my dleted task is still there.

Regards
Erik
Uses Visualcron since 2006.
Support
2012-04-03T08:06:58Z
Yes, please stop/start server to see if problem remains. If it does, please export settings and email us. Also, please tell us which Job and Task name.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Paid support Topic Starter
2012-04-03T08:37:44Z
Hi,

After a reboot the logs are back to normal.
In my file notifications, there is no COPY TO TEMP anymore, and also in the VC logs I can't find this entry anymore.

There is a thing bugging me though...

When I look at my previous logs, there where a lot of trigger moments. Too much.
The job is triggerd by a file trigger. One file triggered the job between 2-11 times.
Now after the reboot, it only fires onces, just as it should be.

So this scares me a lot. Looks like I have to reboot my whole server after changing jobs/tasks. 🤬
It looks like the server memory holds job/task information which is not in VC anymore.

Next week I'm planning to go to the latest stable version 6.0.9, I hope this version is 'more stable'.

Regards,
Erik
Uses Visualcron since 2006.
Support
2012-04-04T08:10:17Z
I have never seen this before. But it would be interesting to think back what happened during the delete of the Task. If it still was running in any way. It should not matter but something special must have been done in order to get into this state.

Reboot is the same as stopping and starting the service. What happens is that memory is persisted to file when this is done. But, memory is also persisted to file when any change occurs - like a Task delete.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top