def suspend(): existing = _state.get('job') if existing in sj_indices(): scriptJob(k=existing) _state['job'] = -1