Skip to content

Commit ff4e3e5

Browse files
authored
Merge pull request #502 from serverlessworkflow/fix-workflow-process-executor
Fixed the `WorkflowProcessExecutor`, which was attempting to create a subflow using the runner's namespace, instead of the configured one when creating a new subflow instance
2 parents 97e1c99 + bb708de commit ff4e3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runner/Synapse.Runner/Services/Executors/WorkflowProcessExecutor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected override async Task DoExecuteAsync(CancellationToken cancellationToken
6060
{
6161
var hash = Convert.ToHexString(MD5.HashData(Encoding.UTF8.GetBytes($"{Environment.GetEnvironmentVariable(SynapseDefaults.EnvironmentVariables.Runner.Name)}{this.Task.Instance.Reference}"))).ToLowerInvariant();
6262
var workflowInstanceName = $"{this.ProcessDefinition.Name}-{hash}";
63-
var workflowInstanceNamespace = Environment.GetEnvironmentVariable(SynapseDefaults.EnvironmentVariables.Runner.Namespace)!;
63+
var workflowInstanceNamespace = this.ProcessDefinition.Namespace;
6464
try
6565
{
6666
this.Subflow = await this.Api.WorkflowInstances.GetAsync(workflowInstanceName, workflowInstanceNamespace, cancellationToken).ConfigureAwait(false);

0 commit comments

Comments
 (0)