Azure 持久计时器练习永远不会超时

标签 azure

我正在逐步完成 Azure 培训。我目前正在查看https://learn.microsoft.com/en-us/learn/modules/create-long-running-serverless-workflow-with-durable-functions/6-exercise-add-a-durable-timer-to-manage-a-long-running-task .

完成此练习需要完成上一个练习,我在上一个练习中遇到了问题,我在 Azure durable functions sample says sync functions are not allowed 中询问过该问题。 。这个问题的答案让我可以继续下一步。您必须在同一个沙箱 session 中完成这两项练习。

我按照练习中的说明设置了所有设置,然后“验证 Durable Functions 工作流程是否已启动”。

当我点击“statusQueryGetUri”网址时,我收到以下响应:

{
  "name": "OrchFunction",
  "instanceId": "5bb6bd9607544adbbc7d6aa00b7a2d40",
  "runtimeStatus": "Running",
  "input": null,
  "customStatus": null,
  "output": null,
  "createdTime": "2020-02-06T21:41:11Z",
  "lastUpdatedTime": "2020-02-06T21:41:35Z"
}

练习说我应该看到这个:

{
  "instanceId": "dc3e6d7c2943474dad2af479233c02e4",
  "runtimeStatus": "Pending",
  "input": null,
  "customStatus": null,
  "output": null,
  "createdTime": "2019-04-14T13:17:26Z",
  "lastUpdatedTime": "2019-04-14T13:17:27Z"
}

按照练习的规定,我让它静置 20 秒,然后再进行任何操作。我确信我等待的时间比那更长。我刷新了网址,基本上什么也没做。我得到了同样的回应。后来我尝试了几次,它仍然只是说“正在运行”,而且我从未得到预期的升级输出。

最佳答案

同时它已经解决了,我得到了这样的回复:

{
    "name": "OrchFunction",
    "instanceId": "f31cae1e3791451ab8bd52d78ad4ed0a",
    "runtimeStatus": "Completed",
    "input": null,
    "customStatus": null,
    "output": [
        "ESCALATION : You have not approved the project design proposal - reassigning to your Manager!  Head of department!"
    ],
    "createdTime": "2020-03-11T13:18:38Z",
    "lastUpdatedTime": "2020-03-11T13:19:14Z"
}

关于Azure 持久计时器练习永远不会超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60104100/

相关文章:

具有应用服务的 Azure 应用程序网关

azure - 使用远程桌面连接 Azure VM 的 MFA 支持

azure - 是否有记录将 Azure 应用程序从北美移植到中国的操作项目 list ?

Azure 云角色包含存储 = 额外费用?

azure - 将我的 Breeze 应用程序部署到 Azure 网站,元数据查询失败

sql-server - Polybase CREATE EXTERNAL TABLE 跳过 header

database - Azure 数据工厂 - Dynamics 365 复制数据复制 GUID 值而不显示值

azure - 仅每月前 5 天运行 Azure 逻辑应用

asp.net - 不允许用于访问此页面的 HTTP 谓词 Web Api IIS 7

Azure Blob 触发器 - 基于输入容器的动态 BlobOutput 绑定(bind)名称