Repository navigation
Conversation
9901bd1 to
fe54744
Compare
dd10a83 to
8ff412b
Compare
The worker runs as a Lambda custom runtime through vendor/bin/lambda. The sample workflow sleeps past a single invocation to show that it resumes on a later one. Pins temporal/sdk to the branch that ships bin/lambda.
Lambda mode moved into roadrunner-temporal v6.2.0, so the separate aws-lambda plugin and its local replace are gone and the config lives under temporal.lambda. Raises temporal/sdk to v2.20 for the RoadRunner 3.x version check.
37d5821 to
3b75adf
Compare
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: 3b75adf97b
ℹ️ 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".
| **3. Start the workflow.** In another terminal: | ||
|
|
||
| ```bash | ||
| docker compose exec app php app.php lambda |
There was a problem hiding this comment.
Start the app service before executing the client command
On a fresh checkout, the local walkthrough never starts the app service: step 1 starts only temporal and its dependencies, while step 2 starts the separate Lambda container. In the inspected docker-compose.yml, app depends on temporal, not the reverse. Consequently, this command cannot start the workflow because app is not running. Docker documents compose exec as executing a command “in a running container” (reference). Add an explicit app startup step or document the prerequisite.
Useful? React with 👍 / 👎.
| $workflow = $this->workflowClient->newWorkflowStub( | ||
| GreetingWorkflowInterface::class, | ||
| WorkflowOptions::new() | ||
| ->withTaskQueue(self::TASK_QUEUE) |
There was a problem hiding this comment.
Honor the configured task queue in the client command
When the worker is configured with a nondefault TEMPORAL_TASK_QUEUE, this command still submits workflows to the hard-coded php-lambda queue. lambda/Makefile explicitly exposes that variable and passes it to the container, and lambda/worker.php uses it to select the worker's queue, so the worker never receives the submitted workflow and the client eventually encounters the five-minute execution timeout. Allow the client to select the same configured queue, retaining php-lambda as its default.
Useful? React with 👍 / 👎.
What was changed
A Temporal worker that runs inside AWS Lambda invocations. The Lambda Runtime API is served by the RoadRunner Temporal plugin (
temporal.lambdaconfig), so the PHP side is an ordinaryWorkerFactory::create()worker. The sample workflow sleeps past a single invocation to show that it resumes on a later one.Needs roadrunner-temporal v6.2.0, which the RoadRunner v3.2.0 release predates, so
velox.tomlpins that tag.Why?
PHP had no Serverless Worker story; Go, Python, TypeScript, Java and .NET all have one.
Checklist
Closes
How was this tested:
Locally under the AWS Lambda Runtime Interface Emulator, unversioned and with
VersioningBehavior::Pinned. The workflow completes across invocations, and an activity longer than the polling window either finishes in the shutdown drain or resumes from heartbeat details later.app/src/Lambda/README.mdcovers local run, configuration, deployment and versioning.