【问题标题】:Amazon SWF: Activity type is not supported by the Activity workerAmazon SWF:活动工作线程不支持活动类型
【发布时间】:2015-07-10 08:39:14
【问题描述】:

我的工作流程(比如 WorkFlow A)已经注册了一些活动(比如 ActivityA 等)

我的工作流程执行时出现以下错误:

    com.amazonaws.services.simpleworkflow.flow.ActivityTaskFailedException: Activity type "{Name: "AcitivityA", Version: 1.0}" is not supported by the ActivityWorker. 

Possible cause is activity type version change without changing task list name. Activity types registered with the worker are: [{Name: "WorkflowB" for activityId="1" of activityType={Name: "ActivityA", Version: 1.0}

不确定错误中是否出现了“WorkflowB”。 这种错误的可能原因是什么? 任何输入表示赞赏。我是 SWF 新手。

谢谢

【问题讨论】:

    标签: amazon-web-services amazon-swf


    【解决方案1】:

    猜测您的工作人员正在使用不同的任务列表。 还要猜测,在这种情况下,错误消息中的 WorkflowB 是任务列表,而不是实际的工作流。

    http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-task-lists.html

    仔细检查您在构建工人时使用的任务列表。 另外,请注意,一旦您注册了活动,就无法更改您正在使用的参数。您可能首先使用默认任务列表注册了活动,然后您在代码中更改了任务列表。这行不通。 SWF 将保留该活动版本的旧默认任务列表

    【讨论】:

      猜你喜欢
      • 2015-10-23
      • 2023-01-11
      • 1970-01-01
      • 1970-01-01
      • 2020-04-13
      • 2011-03-05
      • 1970-01-01
      • 2014-03-19
      • 1970-01-01
      相关资源
      最近更新 更多