I run cron job ,After running for a period of time, the worker cannot get the corresponding task。
The last two tasks are:
lastRunTime_exclude thisRunTime_include WorkflowID RunID
2021-08-18 07:58:02.448 2021-08-18 07:59:03.117 temporal_cron1_687ddd07-6e99-4c1b-96ed-f321979a0c85 8db0f3db-96e4-4908-be09-bc7a401c4315
2021-08-18 07:57:00.896 2021-08-18 07:58:02.448 temporal_cron1_687ddd07-6e99-4c1b-96ed-f321979a0c85 27a63c33-cd8b-4ec5-b32f-73563c6ceddd
the history of temporal_cron1_687ddd07-6e99-4c1b-96ed-f321979a0c85 is :
1 WorkflowExecutionStarted {WorkflowType:{Name:SampleCronWorkflow}, ParentInitiatedEventId:0,
TaskQueue:{Name:cron, Kind:Normal}, WorkflowExecutionTimeout:0s,
WorkflowRunTimeout:0s, WorkflowTaskTimeout:2m0s,
ContinuedExecutionRunId:8db0f3db-96e4-4908-be09-bc7a401c4315,
Initiator:CronSchedule,
LastCompletionResult:[{"RunTime":"2021-08-18T07:59:03.117003609Z"}],
OriginalExecutionRunId:a6ff393b-9cfe-45aa-a37b-04d787884f0b,
FirstExecutionRunId:a2781a9b-b867-4099-800d-5c3f2f2bdabf,
Attempt:1, CronSchedule:* * * * *, FirstWorkflowTaskBackoff:55s,
PrevAutoResetPoints:{Points:[{BinaryChecksum:bbf635f6a52ea2050d3cb1d49f888c14,
RunId:a2781a9b-b867-4099-800d-5c3f2f2bdabf, FirstWorkflowTaskCompletedId:4,
CreateTime:2021-08-18 07:46:01.656435253 +0000 UTC, ExpireTime:2021-08-21
07:46:03.999988743 +0000 UTC, Resettable:true}]}}
2 WorkflowTaskScheduled {TaskQueue:{Name:cron,
Kind:Normal},
StartToCloseTimeout:2m0s,
Attempt:1}
the history of runid 8db0f3db-96e4-4908-be09-bc7a401c4315 is :
1 WorkflowExecutionStarted {WorkflowType:{Name:SampleCronWorkflow}, ParentInitiatedEventId:0,
TaskQueue:{Name:cron, Kind:Normal}, WorkflowExecutionTimeout:0s,
WorkflowRunTimeout:0s, WorkflowTaskTimeout:2m0s,
ContinuedExecutionRunId:27a63c33-cd8b-4ec5-b32f-73563c6ceddd,
Initiator:CronSchedule,
LastCompletionResult:[{"RunTime":"2021-08-18T07:58:02.448290516Z"}],
OriginalExecutionRunId:8db0f3db-96e4-4908-be09-bc7a401c4315,
FirstExecutionRunId:a2781a9b-b867-4099-800d-5c3f2f2bdabf,
Attempt:1, CronSchedule:* * * * *, FirstWorkflowTaskBackoff:56s,
PrevAutoResetPoints:{Points:[{BinaryChecksum:bbf635f6a52ea2050d3cb1d49f888c14,
RunId:a2781a9b-b867-4099-800d-5c3f2f2bdabf, FirstWorkflowTaskCompletedId:4,
CreateTime:2021-08-18 07:46:01.656435253 +0000 UTC, ExpireTime:2021-08-21
07:46:03.999988743 +0000 UTC, Resettable:true}]}}
2 WorkflowTaskScheduled {TaskQueue:{Name:cron,
Kind:Normal},
StartToCloseTimeout:2m0s,
Attempt:1}
3 WorkflowTaskStarted {ScheduledEventId:2,
Identity:15035@xxxxxxx@,
RequestId:ebe2102d-6c2b-4c3d-bb43-1aa09f908167}
4 WorkflowTaskCompleted {ScheduledEventId:2, StartedEventId:3,
Identity:15035@xxxxxxx@,
BinaryChecksum:bbf635f6a52ea2050d3cb1d49f888c14}
5 ActivityTaskScheduled {ActivityId:5, ActivityType:{Name:DoSomething},
TaskQueue:{Name:cron, Kind:Normal},
Input:["2021-08-18T07:58:02.448290516Z",
"2021-08-18T07:59:03.117003609Z",
"8db0f3db-96e4-4908-be09-bc7a401c4315"],
ScheduleToCloseTimeout:0s,
ScheduleToStartTimeout:0s,
StartToCloseTimeout:10s, HeartbeatTimeout:0s,
WorkflowTaskCompletedEventId:4,
RetryPolicy:{InitialInterval:1s,
BackoffCoefficient:2, MaximumInterval:1m40s,
MaximumAttempts:2, NonRetryableErrorTypes:[]}}
6 ActivityTaskStarted {ScheduledEventId:5,
Identity:15035@xxxxxxx@,
RequestId:ee1b2a8d-93b5-442b-a5d5-55d995441598,
Attempt:1}
7 ActivityTaskCompleted {ScheduledEventId:5, StartedEventId:6,
Identity:15035@xxxxxxx@}
8 WorkflowTaskScheduled {TaskQueue:{Name:xxxxxxx:e0290273-0ed3-4916-95ed-8e8c06ce5983,
Kind:Sticky}, StartToCloseTimeout:2m0s, Attempt:1}
9 WorkflowTaskStarted {ScheduledEventId:8,
Identity:15035@xxxxxxx@,
RequestId:53f5ec3e-0cde-4afc-921c-b388db156fba}
10 WorkflowTaskCompleted {ScheduledEventId:8, StartedEventId:9,
Identity:15035@xxxxxxx@,
BinaryChecksum:bbf635f6a52ea2050d3cb1d49f888c14}
11 WorkflowExecutionContinuedAsNew {NewExecutionRunId:a6ff393b-9cfe-45aa-a37b-04d787884f0b,
WorkflowType:{Name:SampleCronWorkflow},
TaskQueue:{Name:cron, Kind:Normal}, WorkflowRunTimeout:0s,
WorkflowTaskTimeout:2m0s, WorkflowTaskCompletedEventId:10,
BackoffStartInterval:55s, Initiator:CronSchedule,
LastCompletionResult:[{"RunTime":"2021-08-18T07:59:03.117003609Z"}]}
Updated relevant information
Steps to Reproduce the Problem
just run workflow with CronSchedule, in my case , I ran ten of them, and after a while, only 7 were left
Specifications
- Version: v1.11.2
- Platform: linux
- Storage:mysql