Piston execution sometime killed during a wait call


#1

1) Give a description of the problem
I am trying to mimic a motion detector in smartthings using IP Cams detection webhook but execution might stop during a wait call.

2) What is the expected behavior?
When Cam calls Piston external URL, identify motion detector based on cam name, set proper motion device to active, wait 5 seconds and set motion to inactive.

3) What is happening/not happening?
Looks like when the Piston external URL is called while it is in the wait line of a previous call (2 very close calls in time). ti’s going to kill the 1st instance and therefor never set motion back to inactive

**4) Post a Green Snapshot of the piston![image|45x37]

Thanks for our help


#2

Try clicking on each ‘with’ statement, then the cog at the bottom right of the pop-up. Change the ‘Task Cancellation Policy’ to Never Cancel.


#3

Thanks, trying that now… Where can I find more docs about all these options ?


#4

The wiki is your best source:

https://wiki.webcore.co/Task_Cancellation_Policy