Conversation
| /** | ||
| * Description of the workflow that backs a Nexus operation. | ||
| */ | ||
| final class WorkflowHandle |
There was a problem hiding this comment.
I was a little confused by the naming here as it felt a bit like this was a reference to a running workflow, but it's actually the input to a start workflow call.
There was a problem hiding this comment.
This mirrors java's io.temporal.nexus.WorkflowHandle naming
If you think that we should rename it, please suggest alternatives
…n timeouts Address PR #768 review: - deadlineFromHeaders parses Request-Timeout only (operation timeout is the total budget, left in forwarded headers); applied to cancel context too - add scheduleToStart and startToClose timeouts to NexusOperationOptions
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d85d80b05
ℹ️ 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".
| $context->getClient()->send(new CommandResponse( | ||
| command: self::COMMAND_VALIDATED, | ||
| options: ['id' => $updateId], | ||
| payloads: null, | ||
| failure: null, |
There was a problem hiding this comment.
Preserve JSON-codec support for update responses
With the default JSON codec (WorkerFactory::createCodec() selects JsonCodec when RR_CODEC is unset), any workflow update now sends CommandResponse, but JsonCodec\Encoder has no CommandResponse branch and throws Unserializable command type ...CommandResponse. The previous UpdateResponse was the only type used here and was handled by the old protocol encoder; consequently update validation and completion fail for existing JSON-codec workers.
Useful? React with 👍 / 👎.
What was changed
Samples: temporalio/samples-php#75
Why?
Checklist
Closes
How was this tested: