Lesson 05 · MeshStudio · 10 minutes
Let a contributor leave
Describe a withdrawal policy that stops new dispatch and handles an already running task honestly.
Before you start
Use the state exercise below. It models one fictional task and contributor in your browser.
- 1.
Dispatch under a grant
Move a task from queued to running while the contributor is available. A task identifier and an active grant should accompany the real implementation.
- 2.
Withdraw the contribution
Withdraw while queued or running. Queued work is no longer eligible. Running work moves to cancellation requested. Revoking a grant is not proof that an offline host stopped immediately.
- 3.
Reject a late result
Finish cancellation, then deliver a late result. The terminal state must stay canceled. A late reply must not restore permission or turn canceled work into success.
Your workbench
Try the lesson
The task is queued. The contributor has granted permission.
Take it one step further
What evidence would prove that a real worker actually stopped, and what can the coordinator only request?
Checking your account…