Skip to content

Commit

Permalink
add workflow name too tasks (#801)
Browse files Browse the repository at this point in the history
Signed-off-by: Lillie Dae <[email protected]>
  • Loading branch information
lillie-dae authored May 12, 2023
1 parent 9124383 commit ab91216
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ private async Task<WorkflowInstance> CreateWorkflowInstanceAsync(WorkflowRequest
var firstTask = workflow.Workflow.Tasks.First();

var task = await CreateTaskExecutionAsync(firstTask, workflowInstance, message.Bucket, message.PayloadId.ToString());
task.TaskPluginArguments["workflow_name"] = workflow.Workflow.Name;

tasks.Add(task);
if (task.Status == TaskExecutionStatus.Failed)
Expand Down

0 comments on commit ab91216

Please sign in to comment.