Cancel job button not sending workload request #127
-
When I click the cancel job button in the UI: I would expect the cancel endpoint to be hit: https://learn.microsoft.com/en-us/rest/api/fabric/workload/workloadapi/jobs/cancel-item-job-instance?tabs=HTTP |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, In our implementation, this reaches the sample workload controller: And there isn't an implementation in the backend, but the shell is here: Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi,
When the cancel button is clicked it triggers this case "item.job.cancel":
https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/main/Frontend/src/index.worker.ts#L80-L83
In our implementation, this reaches the sample workload controller:
https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/main/Frontend/src/controller/SampleWorkloadController.ts#L643-L649
And there isn't an implementation in the backend, but the shell is here:
https://github.com/microsoft/Microsoft-Fabric-workload-development-sample/blob/main/Backend/src/Controllers/JobsControllerImpl.cs#L80-L83
Hope this helps.