Application is shutting down

Discuss RoboTask here
Post Reply
tcarvalho
Posts: 25
Joined: Mon Feb 24, 2020 5:46 pm

Application is shutting down

Post by tcarvalho »

Hi all,

Would anyone have any guesses as to what would cause robotask to stop in the middle of a script playing? The logs simply states "Application is shutting down. Task stopped."
Image

Some notes: I have a main task that is triggering and running a series of 5 other tasks and is only set to continue when the current script finishes. The previous 4 scripts run normally when triggered by this main script and then the final script gets triggered, runs for the first 2-3 minutes and then is force stopped with the above message. There are no other scripts triggered to run during the same time, no error handling script is being triggered that would potentially stop this task or the main task. It does appear to happen consistently at this exact point each day it runs. Replaying this individual script directly after it fails with no changes applied to this script runs normally and completes as expected.

Is there anything I should be checking that may narrow down what could be causing this? Any suggestions are welcomed.
Thank you!
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Application is shutting down

Post by Oleg »

When you stop RoboTask it stops all running tasks by default.
If you want to avoid this and get RoboTask to wait the task turn on this option:
do_not_stop_the_task.png
do_not_stop_the_task.png (10.67 KiB) Viewed 1778 times
Open task editor and check the option "Do not stop the task when the application is shutting down"
Do this for necessary tasks.
By default RoboTask stop all running tasks before exiting
Oleg Yershov
tcarvalho
Posts: 25
Joined: Mon Feb 24, 2020 5:46 pm

Re: Application is shutting down

Post by tcarvalho »

Oleg wrote: Fri Jan 07, 2022 4:25 pm When you stop RoboTask it stops all running tasks by default.
If you want to avoid this and get RoboTask to wait the task turn on this option:
do_not_stop_the_task.png
Open task editor and check the option "Do not stop the task when the application is shutting down"
Do this for necessary tasks.
By default RoboTask stop all running tasks before exiting
This is helpful information but any ideas as to what is causing the application to shut down in the first place? As I mentioned I have no triggers or force stopping to make robotask stop (at least from what I can tell with current scripts/settings).
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Application is shutting down

Post by Oleg »

Maybe some task uses Exit RoboTask action?
You can close RoboTask by several ways:
  • Exit RoboTask manually (menu Task->Exit)
  • By pressing (or sending to main window of RoboTask) key combination CTRL+X
  • By Exit RoboTask action from any task
  • Usage RoboTaskApp.Close method of embedded COM object
Check it please.
Oleg Yershov
tcarvalho
Posts: 25
Joined: Mon Feb 24, 2020 5:46 pm

Re: Application is shutting down

Post by tcarvalho »

Oleg wrote: Fri Jan 07, 2022 7:22 pm Maybe some task uses Exit RoboTask action?
You can close RoboTask by several ways:
  • Exit RoboTask manually (menu Task->Exit)
  • By pressing (or sending to main window of RoboTask) key combination CTRL+X
  • By Exit RoboTask action from any task
  • Usage RoboTaskApp.Close method of embedded COM object
Check it please.
Yeah I am not using any of these. Any other suggestions to check?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Application is shutting down

Post by Oleg »

RoboTask can not shutdown spontaneously.
It must accept corresponding command from user or action or 3-rd party application
System can terminate RoboTask process (for example if some critical error happens). But this is not normal shutdown.
System just kill application in this case.
Oleg Yershov
Post Reply