437
case enumsspb.TASK_PRIORITY_UNSPECIFIED:
438
switch task.(type) {
440
>
// This is an optimization for workflow state task. The low priority task scheduler is grouping task by workflow ID.
441
>
// When multiple runs of task come in, we can serialize them in the low priority task scheduler. As long as we use a single tracker,
442
>
// the task ACK is guaranteed to be in order.(i.e. no task will be lost)
443
>
return enumsspb.TASK_PRIORITY_LOW, nil
444
}
445
return enumsspb.TASK_PRIORITY_HIGH, nil