取消运行作业

发布于 2025-02-07 20:22:16 字数 451 浏览 2 评论 0 原文

有没有办法取消正在运行的作业?

答案可能的。但是,如果您创建Azure IoT Central应用程序,那么当您安排作业时,它们可以选择在某些错误发生时自动取消运行作业。

这是内部的,或者是不可公开的,还是在自定义开发的应用程序中有一些SDK,REST呼叫或任何其他方法可以实现这一目标?

Is there a way to cancel a job that is running?

The answer on this question implies that it is not possible. However if you create Azure IoT Central application, when you schedule a job, they give you the option to automatically cancel a running job when certain % of errors occur.

enter image description here

Is this something internal and not available to public, or are there some SDKs, REST calls or any other ways to achieve this in custom developed applications?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奶气 2025-02-14 20:22:16

这是内部的,不向公众使用,还是在自定义开发的应用程序中有一些SDK,REST呼叫或任何其他方法?

更新答案:

Roman Kiss ,您可以参考

“ https://learn.microsoft.com/en-us/rest/rest/api/iotcentral/1.2-previewdataplane/jobs/jobs/stop“ rel =“ nofollow noreferrer” > strong> api令牌来自您的IoT Central应用程序可用于授权标题和您的 appid for appsubdomain


根据您可以通过REST API取消计划作业,但到目前为止,无法取消运行作业。

POST https://fully-qualified-iothubname.azure-devices.net/jobs/v2/{id}/cancel?api-version=2020-05-31-preview

您可以参考 and “ nofollow noreferrer”>取消运行状态中的作业

Is this something internal and not available to public, or are there some SDKs, REST calls or any other ways to achieve this in custom developed applications?

Updated answer:

As commented by Roman Kiss, you can refer to Jobs - Stop

Note: The API token from your IoT Central App can be used for Authorization header and your appId for appsubdomain.


According to documentation, you can cancel scheduled job via REST API but as of now no way to cancel running job.

POST https://fully-qualified-iothubname.azure-devices.net/jobs/v2/{id}/cancel?api-version=2020-05-31-preview

You can refer to job_client.ts, job_client_requirements.md and Cancel Jobs in running status

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文