Skip to content

[chore] Mount worker-triggers in all compose stacks#4743

Draft
jp-agenta wants to merge 1 commit into
wp4-ingress-dispatchfrom
hosting-worker-triggers
Draft

[chore] Mount worker-triggers in all compose stacks#4743
jp-agenta wants to merge 1 commit into
wp4-ingress-dispatchfrom
hosting-worker-triggers

Conversation

@jp-agenta

Copy link
Copy Markdown
Member

Context

The lane below this one adds a worker_triggers process that drains the queues:triggers Redis Stream and invokes bound workflows. None of the compose stacks launch it yet, so on a real deployment trigger events would enqueue and sit there with nothing consuming them.

Changes

Adds a worker-triggers service to every OSS and EE compose file, mirroring the existing worker-webhooks service in each file so the shape stays consistent per environment:

  • gh, gh.local, gh.ssl: the newrelic array command (newrelic-admin run-program python -m entrypoints.worker_triggers), except ee.gh which uses the plain python -m ... form like its webhook sibling.
  • dev: watchmedo auto-restart over the api source dirs so edits to worker_triggers.py reload without a rebuild (it reuses the already-built dev api image).

Each new service reuses its sibling's env_file, so COMPOSIO_WEBHOOK_SECRET and the rest of the api config flow in with no extra wiring. Each gets a /proc/1/cmdline healthcheck asserting entrypoints.worker_triggers is the running process.

The matching SaaS production compose lives in the separate agenta_cloud repo and is handled there.

Tests / notes

  • All seven files parse as valid YAML; each has exactly one worker-triggers service.
  • Not yet run end to end against live infra. The dev image needs no rebuild for the worker to pick up the entrypoint (bind-mounted source + watchmedo).

Adds a worker-triggers service mirroring worker-webhooks across every
OSS and EE compose file so the trigger dispatch worker actually runs:
gh/gh.local/gh.ssl (newrelic array command, or plain python for ee.gh)
and dev (watchmedo auto-restart over the api source dirs). Each service
reuses its sibling's env_file so COMPOSIO_WEBHOOK_SECRET flows in, and
gets a /proc/1/cmdline healthcheck on entrypoints.worker_triggers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jun 18, 2026 5:30pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 20fa0381-1f8e-4dc6-98fd-278f99063f9f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hosting-worker-triggers

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant