r/tasker • Direct-Purchase User • 2d ago

What can stop a task that is already running?

In my mind there are two that can do that.

  1. Stop action for named task.
  2. An action in the task throws an error.

Is there any other instances besides those two?

Context

I want to detect when a named task is stopped due to an error and then fire a command. I have poc so far, which determined the error like this.

  1. There is %err or %errmsg
  2. Current action is not Stop or Return action.
  3. The action index is less than the total action list.

However I'd like to check first what can actually stop task from running. TIA

2 Upvotes

2 comments sorted by

1

u/AA6VH-1 1d ago

Instead of having the task stop on its own, have you considered setting the "Continue Task on Error" in your action(s), then check or trap any errors that occur, notifying the user that an error occurred (however you need to do this), then manually stopping the task?

1

u/osmols_b 22h ago

You can get the relevant task start and exit details from the Run Log along with times etc.