20 second limit on pistons


#1

I remember reading somewhere that webCoRE has a 20 second limit on pistons running before the rest of the code is cancelled… I have two questions about this:

  1. Do Wait commands count towards that 20 second limit?

  2. Do consecutive pistons count towards that limit?
    temp
    (ie: I have a complex piston run, and the final command starts another complex piston, and that final command runs another piston etc.)


#2

No and No

waits longer than 3 seconds cause the piston to subscribe 3 seconds into the future stopping the stopwatch.

Firing other pistons is seen as a brand new execution.

And the 20 second limit isn’t a problem anyway… @ady624 wrote some black magic recovery code that simply picks up where it left off if time runs out.


#3

Thanks for the detailed answer! I guess I need to analyze a bit more then. In the past two days, my 4th and 5th piston in a consecutive chain have been sporadic, although that may be because I was testing on the staging server during that same time period.