enum WorkerState { pending, success, failed; }