r/tasker • u/dougwzz99 • Oct 26 '26
Task collision and single threading
Hi,
I have a profile that intercepts notifications from an app and fires off a task to process the notification contents.
The app in question can issue several notifications at the same time. How can I ensure that the triggered task is single threaded, with only one task instance running at a time while at the same time getting the correct information from the notification that it is processing.
There is an option in task settings to 'Run Both Together' but I don't want the task activity to be interlaced and anyway there could be more than 2 instances at play here. I'm looking at setting up a lock/unlock gate mechanism at the start and end of the task, but not sure of the exact best way to approach this (or if there is another way to guarantee task single threading).
Appreciate any advice.
TIA.
View all comments
Show parent comment
1
u/Exciting-Compote5680 Oct 27 '26
Aren't you just moving the bottleneck from one task to another? Tasks are already queued, this just adds more overhead.