Give each workflow run a parent task with no agent
This commit is contained in:
@@ -580,6 +580,9 @@ func (m *Manager) signalText(ctx context.Context, ev api.Event) (string, error)
|
||||
if task.ForkedFrom != nil {
|
||||
return fmt.Sprintf("%s was forked by %s from %s at snapshot %d.", m.taskLabel(ctx, task.Id), ev.Actor, m.taskLabel(ctx, *task.ForkedFrom), *task.ForkedAt), nil
|
||||
}
|
||||
if task.WorkflowStage != nil {
|
||||
return fmt.Sprintf("%s was created to run stage %q of %s.", m.taskLabel(ctx, task.Id), *task.WorkflowStage, m.taskLabel(ctx, *task.ParentTaskId)), nil
|
||||
}
|
||||
if task.ParentTaskId != nil {
|
||||
return fmt.Sprintf("%s was created as a subtask of %s by its agent.", m.taskLabel(ctx, task.Id), m.taskLabel(ctx, *task.ParentTaskId)), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user