-record(task_result, { state :: binary(), result :: binary(), failure_reason :: binary() }).