public readonly property state as String
Current lifecycle state.
WAITING describes an acknowledged cooperative pause or an indefinite join; TIMED_WAITING describes sleep or timed join. TERMINATED is reported only after the worker has left user code and completed runtime cleanup.
print(worker.state)