Repository navigation
Conversation
Cancel a workflow with a reason and read the reason in the workflow.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 002b1f86e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| $output->writeln("Canceling the workflow with a reason... "); | ||
| $this->workflowClient | ||
| ->newUntypedRunningWorkflowStub($run->getExecution()->getID()) | ||
| ->cancel('The order was withdrawn by the customer'); |
There was a problem hiding this comment.
Update the SDK dependency to support cancellation reasons
With the documented composer install setup, app/composer.lock still installs temporal/sdk v2.17.1, whereas this commit explicitly depends on the cancellation-reason support from sdk-php#863. No dependency update or additional setup instruction accompanies the sample, so users following its README cannot demonstrate the advertised reason propagation with the committed dependencies. Update the SDK requirement and lockfile to a release containing that support.
Useful? React with 👍 / 👎.
The sample needs both for the cancellation reason. sdk 2.21 needs the test server from dload and an array rr command.
Add the
CancelReasonsample: cancel a workflow with a reason and read the reason in the workflow. Requirestemporal/sdk^2.21 and rr ^3.3; the feature test bootstrap follows the 2.21EnvironmentAPI.What was changed
Why?
Checklist
Closes
How was this tested: