I did a little experiment. I wanted to see if Cancel all pending tasks would cancel a WAIT statement if the Never cancel tasks option was selected on that WAIT statement. It appears that the WAIT statement is not cancelled as the logs indicate that the piston ran for 20 seconds as programmed. That would make sense as the WAIT statement pauses the piston before the Cancel statement executes. Is my logic correct here?
Piston backup code : dtg0
Yeah, you waited the 20 seconds before canceling tasks, so there was no task after the wait was done if the wait was the only task that would be cancelled.
If something else triggered the piston and cancelled the tasks while the wait was still scheduled, it probably would have cancelled it.
A wait just creates a scheduled job to fire off the rest of the commands after the wait statement. I believe you can see that wait in the scheduled jobs of the the hub while it is active and waiting to fire.
1 Like
