Timeout on actions, specifically GD Upload

38 views
Skip to first unread message

coman

unread,
Nov 1, 2023, 2:36:34 AM11/1/23
to Tasker
There's no timeout field for the Google Drive upload action. Is there any other way possible to enforce one there? 

I have a task that runs very frequently and does GD Upload at the end. However, whenever there's limited internet connectivity, the task gets stuck at this action and builds up a huge queue making subsequent tasks not execute and drop off when it reaches the tasks limit and makes the phone overheat. In my case, it would be perfectly fine to skip GD Upload when there's little to no connectivity. 

Thanks! 

Rich D

unread,
Nov 1, 2023, 5:20:00 AM11/1/23
to Tasker Google Groups Post


There's no timeout field for the Google Drive upload action. Is there any other way possible to enforce one there? 

You should be able to build your own by using a profile with a Tick context and a State -> Variable Value context that monitors %TRUN for the Task name.  

  Set the Tick Time to whatever you want your time out for and within the linked Task you can stop  the Google Drive upload Task or check internet connection and decide whether to stop Task. 

  If the Profile does not reset itself when the next Task iteration runs you can just reset from within the Google Drive upload task so every iteration resets the Tick context.  

  

coman

unread,
Nov 2, 2023, 4:05:04 AM11/2/23
to Tasker
Thank you. But there seems to be one problem, documentation says that stopping a task will not stop its current action, which is exactly what needs to be done here as the current action is the GD Upload which is hung and is not timing out. Here's what the help guide says:

Stop execution of one or more tasks after any currently running action has finished.

Currently running actions in a different task will not be interupted by a Stop action, with the exception of Play Ringtone and a non-root Run Shell.

This is from here - https://tasker.joaoapps.com/userguide/en/help/ah_stop.html
Reply all
Reply to author
Forward
Message has been deleted
0 new messages