aws-swf
aws-swf copied to clipboard
event_list.has_schedule_activity_task_failed is not detecting ACTIVITY_TYPE_DOES_NOT_EXIST
decisionTask.eventList.failed(activityId) returns false when this activityId is in fact failed.
I tried to trace the code through the debugger, and the way it is implemented right now, activityIdFor in event-list.js on line 19 receives scheduledEventId === undefined
I was able to fix this issue by doing this:
has_schedule_activity_task_failed: function (activityId) {
return this._has_eventType_for_activityId(activityId, 'ScheduleActivityTaskFailed');
},