← All integrations
Trigger.dev

Trigger.dev integration. Find out why your Trigger.dev runs fail.

Polylane maps your Trigger.dev tasks, schedules and queues, reads failed runs with their traces and logs to find the cause, and writes the fix in your code.

Start free

How to set up Trigger.dev

Paste this prompt into your coding agent. It installs the Polylane CLI if you need it, signs you in and connects Trigger.dev.

Here's what Polylane does with Trigger.dev: Polylane maps your Trigger.dev tasks, schedules and queues, reads failed runs with their traces and logs to find the cause, and writes the fix in your code. I want that, so connect Trigger.dev to my Polylane workspace. If the Polylane CLI isn't installed or I'm not signed in, set that up first by following https://polylane.com/auth.md. Then connect Trigger.dev with `polylane cloud connect`: run `polylane cloud connect --help` to find the Trigger.dev option and its flags. If the CLI doesn't offer Trigger.dev, open https://console.polylane.com and walk me through connecting it there. The setup steps and the access Trigger.dev needs are at https://polylane.com/integrations/triggerdev/. Ask me for anything you need, like a token or an approval in the browser. When you're done, run `polylane cloud list` and tell me whether Trigger.dev is connected.
Set it up by hand: steps, permissions and access
  1. Open the production or staging environment’s API Keys in Trigger.dev. Create an environment secret key using the No restrictions preset.
  2. Paste the key into Polylane and connect. The key identifies its project and environment; production and staging each become a separate account.
  3. For alerts, add a webhook on the environment’s Alerts page using the account Settings webhook URL. Select Task run failure, Deployment failure and Deployment success; paste the webhook signing secret into Polylane’s Webhooks card.

Permissions and access

The No restrictions preset is required because the project identity endpoint rejects restricted presets. Trigger only, Observer, Deploy only, Task operator and Variables only keys cannot connect. Despite that credential capability, Polylane only reads: it starts no tasks, replays no runs, pauses no queues and reads no variables. Dev and preview keys are not supported for the persistent account connection.

Discovery, refresh and the connected view

The environment, deployment, tasks, schedules and queues refresh every 15 minutes. Tasks found in runs but absent from the current version remain mapped and flagged. Connecting an environment enables its monitoring; the account settings monitoring toggle can turn checks off. Failed-run webhooks open issues, and successful deployments resolve deployment alerts.

Example workflow

Investigate a failed scheduled task by comparing the run’s failure with the current deployment and queue state. Check whether that task disappeared from the current version but still has scheduled work or recent runs. The retained task node makes that version mismatch visible instead of losing the task when discovery refreshes.

Disconnect and revoke access

Disconnect the environment in Polylane and revoke its secret key in Trigger.dev. Remove the alert webhook if it should no longer deliver events.

Provider credentials and Polylane’s access mode are separate. Where write-capable tools exist, the connected account’s Settings page offers a Read-only switch. Turning it off permits writes subject to review and confirmation, but cannot add permissions to the provider credential. Agent-connected Kubernetes clusters stay read-only.

In the graph.

Every Trigger.dev resource Polylane picks up sits in the graph with its connections, config and history.

Environment
Task
Schedule
Queue
Deployment

Trigger.dev tools.

The calls Polylane can make to Trigger.dev when it looks into an issue.

Trigger.dev
  • triggerdevRuns List Trigger.dev runs with filters, retrieve one run with its attempts, or read the error groups failed runs fold into
  • triggerdevRunTelemetry Read a Trigger.dev run's trace tree or its log events
  • triggerdevQuery Query Trigger.dev run history with TRQL, or read its schema and dashboard queries
  • triggerdevInventory Read what a Trigger.dev environment is made of: deployments and the current one, bulk actions, schedules, queues and a queue's wait time and depth metrics
  • triggerdevApi Read the connected Trigger.dev REST API

Recent updates

All updates in the changelog

Common questions

Why does an Observer key fail to connect?

The project identity endpoint requires the No restrictions preset. The connection rejects restricted keys even though Polylane’s operations are read-only.

Can one key connect production and staging?

No. The key identifies one environment. Connect production and staging separately with their own environment keys.

Connect it once. Then get back to shipping.