isStateful() returns the right value based on the job

This way it's possible to create stateful jobs where the job executions can't overlap.