When a session is suspended, any running tasks are given a grace period (suspendGracePeriod in the application profile) to finish. If they do not finish before the grace period, the service instances on which they are running are terminated and the tasks are requeued and put into the pending state. No pending tasks are scheduled until the session is resumed. Any tasks that were requeued are rerun when the session resumes.