Skip to content

Commit

Permalink
Merge pull request #470: Don't send RunId when signal a child workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Jul 2, 2024
2 parents 4c119c0 + a64596f commit cfea7f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Internal/Workflow/ChildWorkflowStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function (WorkflowExecution $execution) use ($name, $args) {
$request = new SignalExternalWorkflow(
$this->getOptions()->namespace,
$execution->getID(),
$execution->getRunID(),
null,
$name,
EncodedValues::fromValues($args),
true,
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/data/Test_SignalChildViaStubWorkflow.log
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
2021/01/12 15:28:19 DEBUG [{"id":9001,"command":"ExecuteChildWorkflow","options":{"name":"SimpleSignalledWorkflow","options":{"Namespace":"default","WorkflowID":null,"TaskQueueName":"default","WorkflowExecutionTimeout":0,"WorkflowRunTimeout":0,"WorkflowTaskTimeout":0,"WaitForCancellation":false,"WorkflowIDReusePolicy":2,"RetryPolicy":null,"CronSchedule":null,"ParentClosePolicy":1,"Memo":null,"SearchAttributes":null}},"payloads":"","header":""},{"id":9002,"command":"GetChildWorkflowExecution","options":{"id":9001},"payloads":"","header":""},{"payloads":"ChkKFwoIZW5jb2RpbmcSC2JpbmFyeS9udWxs"}] {"receive": true}
2021/01/12 15:28:19 DEBUG [{"id":9002,"payloads":"CngKFgoIZW5jb2RpbmcSCmpzb24vcGxhaW4SXnsiSUQiOiI1MjUxN2Y0YS00YWE3LTQxMmEtYmIzYy05OWI2NjcyZWViNjJfMSIsIlJ1bklEIjoiYjkyN2FhNzUtYTBiNS00ZTAyLTkyMzctZjk2MWY3M2VkYzMzIn0="}] {"taskQueue":"default","tickTime":"2021-01-12T15:28:19.5368724Z"}
2021/01/12 15:28:19 DEBUG [{"command":"StartWorkflow","options":{"info":{"WorkflowExecution":{"ID":"52517f4a-4aa7-412a-bb3c-99b6672eeb62_1","RunID":"b927aa75-a0b5-4e02-9237-f961f73edc33"},"WorkflowType":{"Name":"SimpleSignalledWorkflow"},"TaskQueueName":"default","WorkflowExecutionTimeout":0,"WorkflowRunTimeout":0,"WorkflowTaskTimeout":0,"Namespace":"default","Attempt":1,"CronSchedule":"","ContinuedExecutionRunID":"","ParentWorkflowNamespace":"default","ParentWorkflowExecution":{"ID":"2445f473-d974-4705-9bba-daac1f557615","RunID":"52517f4a-4aa7-412a-bb3c-99b6672eeb62"},"Memo":null,"SearchAttributes":null,"BinaryChecksum":"464f326cee4654e3d40d9f42fe0f90f7"}}}] {"taskQueue":"default","tickTime":"2021-01-12T15:28:19.538353Z"}
2021/01/12 15:28:19 DEBUG [{"id":9003,"command":"SignalExternalWorkflow","options":{"namespace":"default","workflowID":"52517f4a-4aa7-412a-bb3c-99b6672eeb62_1","runID":"b927aa75-a0b5-4e02-9237-f961f73edc33","signal":"add","childWorkflowOnly":true},"payloads":"ChsKFgoIZW5jb2RpbmcSCmpzb24vcGxhaW4SATg=","header":""}] {"receive": true}
2021/01/12 15:28:19 DEBUG [{"id":9003,"command":"SignalExternalWorkflow","options":{"namespace":"default","workflowID":"52517f4a-4aa7-412a-bb3c-99b6672eeb62_1","runID":null,"signal":"add","childWorkflowOnly":true},"payloads":"ChsKFgoIZW5jb2RpbmcSCmpzb24vcGxhaW4SATg=","header":""}] {"receive": true}
2021/01/12 15:28:19 DEBUG [{"id":9004,"command":"NewTimer","options":{"ms":1000},"payloads":"","header":""},{"payloads":"ChkKFwoIZW5jb2RpbmcSC2JpbmFyeS9udWxs"}] {"receive": true}
2021/01/12 15:28:19 DEBUG [{"command":"InvokeSignal","options":{"runId":"b927aa75-a0b5-4e02-9237-f961f73edc33","name":"add"},"payloads":"ChsKFgoIZW5jb2RpbmcSCmpzb24vcGxhaW4SATg="}] {"taskQueue":"default","tickTime":"2021-01-12T15:28:19.5630689Z"}
2021/01/12 15:28:19 DEBUG [{"payloads":"ChkKFwoIZW5jb2RpbmcSC2JpbmFyeS9udWxs"}] {"receive": true}
Expand Down

0 comments on commit cfea7f0

Please sign in to comment.