spacedrive
spacedrive copied to clipboard
Fix job resuming/pausing and cancelling
We don't know why this works, but it does.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| spacedrive-web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 27, 2023 5:45pm |
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| spacedrive-landing | ⬜️ Ignored (Inspect) | Visit Preview | Jun 27, 2023 5:45pm |
I think its because one worker handles all jobs in a group, so to pause a worker you would need to send the id of the first job in the group.
It works because this data.id here https://github.com/spacedriveapp/spacedrive/blob/main/interface/app/%24libraryId/Layout/Sidebar/JobManager/JobGroup.tsx#L83 is the job group id, not the individual job's id. This was the reason I introduced using the job.parent_id as the worker_id when possible.