A previous
instance of
this task
is running
Sometimes you may see the following in the activity log:
“A previous
instance of
this task
is running. This task
instance will
stop immediately. Synchronize option =
No overlapping task
instances.
No instances
wait”
This happens if a task instance has stalled and the task does not complete. This happens sometimes with FTP/SFTP tasks where connections do not get closed.
Normally, all tasks are run as threads within the engine. External processes can be safely terminated, but threads cannot be terminated safely (for Operating system safety) . Threads have to complete and exit normally. Hence we have no option to manually/automatically terminate threads if they hang. We just have to figure out the reason for stalling and fix it.
3 Options:
1) Set
a Task Wait
time:
Engine
menu
Task wait time
Select task
title
Wait time = 300
seconds
or as
needed
Click Save button
Here the task will be run as a thread within engine as it normally does, but if it exceeds the wait time, then the engine will consider it dead and set an exit code = 999. (it will still be alive/zombie). This should allow the next instance of the task to run.
2) Run
the SFTP task as an
external
process:
Engine
menu
External
Process
Select task
title
Select option to
“run as
external
process”
Wait
time
= 300 seconds or
as needed
Click Save button
The process
(and task) will be
terminated
safely as an external process
after 300 seconds.
3)
a) If
your stalling task
is
an FTP task,
consider
switching
the library
i.e. use
Chilkat (FTP-J)
instead
of Commons
(FTP)
and vice versa.
Similarly, if
your stalling
task is an
SFTP task, consider switching the
library i.e.
use
Chilkat (SFTP-J) instead of
Maverick
(SFTP) and vice versa
As always, it is a pleasure doing business with you. We are very happy with the capabilities of the new version of Automize and are looking forward with moving ahead with our first production system based on this software. –Automize Enterprise User
Thanks for your timely response. You make a great product, and we're integrating it more and more into our daily production activities. I will try out these FTP suggestions as you've outlined. –JaSFTP User
Just wanted to compliment you folks on a great product. your product is working flawlessly! I'll definitely be purchasing it, and telling every other "IT type" I know about it! Thanks so much. –Automize User
Your program was exactly what I was looking for...you have all the features that I require; all in one program!!–AbleFTP user