Build log · December 3, 2026
colinslist.org on Trigger.dev
I moved the daily content jobs behind colinslist.org to Trigger.dev in under two hours, working with Claude Code. First the new version ran beside the live site on its own copy of the data. Then it took over the live site, and the old jobs kept running on a copy, so the two are still compared every day. This is every step we took, with the prompts I typed at each one, and everything that went wrong, written up as feedback for the Trigger.dev team.
Colin Lowenberg
Agent: Claude Code (Opus 5.5)
Trigger.dev SDK 4.9.1
Elapsed: 8:09 PM → 10:03 PM PT
colinslist.org: A directory of the Bay Area tech scene: about 37,000 listings of companies, investors, founders, jobs, events and tools, kept fresh by daily jobs.
For the Trigger.dev team
- Let the CLI start a run. The agent deployed on its own, then had to wait for me to click Test before it could verify anything.
- Show what
syncEnvVars will upload and overwrite. It nearly uploaded a personal GitHub token from the shell.
- Make the Test page obvious for scheduled tasks. The placeholder payload made me think I'd done it wrong.
All feedback from this project · Feedback across all five projects
Why move at all
colinslist is a directory of the Bay Area tech scene: about 37,000 listings of companies, investors, founders, jobs, events and tools. Its content was kept fresh by jobs spread across three systems, none of which told me when something broke:
| Content | Ran on | Problem |
| YC directory, AI agents, job boards | 3 Vercel scheduled functions | Time limit, no retry, no alert on failure |
| Dev tools, open source, agent data files | A GitHub Action running Python that commits JSON to the repo | Data lives in git; the site redeploys every day for a data change |
| Events, bounties, forward deployed jobs | Fetched when a visitor loads the page | A slow source slows the page |
The next thing I want to build is a content pipeline that re-checks 14,000 companies, reads news sources and pauses for my approval on anything uncertain. That needs long-running jobs, retries and a human-in-the-loop wait, which is what Trigger.dev sells.
The rule: build it in parallel
I didn't want to break a live site to try a new tool. So v2 runs next to v1, not instead of it:
- v2 writes to its own Postgres schema,
v2, through a database login that can read the live tables but gets permission denied if it tries to write them.
- Every task checks which login it's connected as before doing anything, and refuses to run as anyone else.
- A daily task compares v1 with v2, listing by listing, and saves the report.
- The v2 website is a Vercel preview on a
v2 branch, pointed at the v2 schema.
Step by step
Each step starts with what I typed to the agent, word for word, Pacific time. Only three prompts asked for real work. The others were questions about the Trigger.dev dashboard, which is part of the feedback below.
Plan before code
put together a plan to rebuild colinslist using trigger.dev
The agent read Trigger.dev's docs and pricing, then mapped which of colinslist's jobs Trigger.dev would replace and which it wouldn't. Its first point was that Trigger.dev runs jobs, not websites: the site, database and chat bot stay on Vercel and Neon. The plan had five steps: move the three daily jobs, move the Python scripts and get data out of git, move the live fetchers to schedules, build the new content pipeline, add approvals. This post covers the first two.
Make an isolated v2 database
let's build the new version in parallel so we don't break the existing site and we can run both in parallel to compare and eval
That one sentence drove steps 2 through 6, with no further prompts from me. No Neon API key was on hand, so instead of a Neon branch the agent made a separate Postgres role whose search_path is a new v2 schema. It copied the 37,250 listings, 28,494 YC records and 1,215 events into it, and confirmed the role is refused when it writes to the live tables.
Let the Python scripts write somewhere other than the repo
Each fetch-*.py script got a DATA_DIR setting, so it can write its JSON to a scratch folder instead of client/public. A new datasets table holds each file as JSON, and the site serves it at /api/data/<name>, falling back to the old static file if the database has no copy.
Write the Trigger.dev tasks
Four scheduled tasks in one file, each calling the same import code v1 uses, at the same times as v1:
refresh-data-files 0 10 * * * 4 Python scripts, then load AI agents
refresh-yc 30 11 * * * YC directory → 24,017 listings
refresh-job-boards 15 12 * * * RevOps and DevRel jobs from 135 boards
compare-v1-v2 0 13 * * * v1 vs v2 report, saved daily
The Python ran through @trigger.dev/python's python.runScript and the build extension, with no rewrite. Retries are per task: three with back-off for the imports, one for the data refresh, since rerunning it repeats a few hundred requests to each source.
Run the whole pipeline locally first
Before Trigger.dev was involved, a local script ran the same four steps against the v2 schema. Result: every section had the same number of listings in v1 and v2. The only miss was open source, which needs a GitHub token that wasn't set locally.
Push a v2 preview
Branch v2 deploys to a Vercel preview with a branch-scoped DATABASE_URL pointing at the v2 login. The agent confirmed the preview serves data files from the v2 database, not from git.
Create the Trigger.dev project (me)
Project created
The one step the agent couldn't do: create an account and project. I did it in the dashboard, then pasted the project ref.
Deploy
It turned out the Trigger.dev CLI on my machine was already logged in from an earlier project, so npx trigger.dev deploy just worked and shipped version 20261204.1. The deploy also uploaded the v2 database address as a secret.
Test a task from the dashboard (me)
did i do it right?
The agent couldn't start a run itself (see feedback), so I clicked Test and sent a screenshot. compare-v1-v2 finished in 2.8 seconds after a 5-second queue. I wasn't sure it had worked, because of the placeholder payload. The agent checked the database and found the report the run saved.
Add a GitHub token (me)
how do i do this? "Add a read-only GitHub token as GITHUB_TOKEN under Environment Variables → Production, so the open source refresh doesn't fail."
The open source script reads GitHub star counts, so it needs a token. The agent walked me through making a fine-grained, public, read-only token on GitHub and adding it as a Secret in Production.
Test the data refresh (me)
where do i find refresh-data-files
The agent watched the v2 database while the run went. All four files were saved within about five minutes, open source included, and the 999 AI agents were reloaded into listings.
Make Trigger.dev the live pipeline, keep v1 as the shadow
let's migrate to using trigger.dev as the main process used on the website but keep v1 running to see how it performs over time
This flipped the roles instead of retiring v1. Two new database logins:
- A pipeline login for Trigger.dev: adds and changes rows in the live tables, but can't drop or alter them.
- A v1 login for the old Vercel jobs: writes only its own copy in a
v1 schema, made from the live data at switch-over.
Each job checks which login it got and refuses to run as any other, so a v1 job can't touch the live site even if someone redeploys an old config. The daily comparison now reads v1 against live, for the three sources both pipelines refresh. Main fast-forwarded to the v2 branch and Trigger.dev deployed version 20261204.2.
Check it in production
Locally, the YC import ran as the pipeline login and rebuilt all 24,017 live YC listings unchanged. In production, the agent ran v1's agents job once with vercel schedules invoke: it wrote the v1 copy and left live data untouched. The live data pages now serve what Trigger.dev saved; open source shows its 1,262 projects. The first scheduled Trigger.dev runs against the live site are the next morning, 10:00 to 12:15 UTC.
What improved
| v1 | v2 on Trigger.dev |
| Where jobs run | Vercel functions + a GitHub Action | One project, four tasks |
| Time limit per job | Vercel function limit | Set per task (15–30 min here) |
| Retries | None | Per task, with back-off |
| Data files | Committed to git, daily redeploy | In the database, no redeploy |
| Seeing a run | Vercel logs and Actions logs | One trace per run, a span per Python script |
| Knowing it's right | n/a | A saved v1 vs live report every day |
| What a job may touch | The owner login, full rights | Rows only; v1 locked to its copy |
First comparison, from the deployed task:
| Source | v1 | v2 | Only in one |
| YC directory | 24,017 | 24,017 | 0 |
| AI agents | 999 | 999 | 0 |
| Job boards | 169 | 169 | 0 |
| Jobs with a salary | 4,212 | 4,212 | — |
Since the switch-over, the live site is fed by Trigger.dev, but a visitor sees the same listings as before. This was groundwork. The visible wins come with the content pipeline and approvals, which need long runs and human-in-the-loop waits.
Failure alerts
Alerts only fire when a run fails, so the daily comparison was changed to fail on purpose, after saving its report, when the live pipeline goes quiet or wrong:
- a source or data file not refreshed in 36 hours, or gone entirely
- a source more than 5% apart from v1, or a data file under 70% of v1's size
- v1's side unreadable, so nothing can be compared
One alert in the dashboard, for failed task runs and failed deploys, then covers all four tasks. Creating the alert was a dashboard-only step.
Feedback for Trigger.dev
Ordered by how much each one cost us, most first. Most are about an AI agent doing the work while a person clicks the dashboard, which I expect will be a common way people set up Trigger.dev.
HighAn agent can deploy, but can't run or check a task
After deploying, the agent wanted to trigger compare-v1-v2 once and read the result. The CLI has no command to start a run. (It can read runs, with runs list and runs get, which we only found during the colin.chat migration.) The only way was the REST API with an environment secret key, which meant pulling the token the CLI had saved in ~/.config/trigger/config.json. Claude Code's own safety check blocked reading another tool's stored token, correctly. So I had to click Test and send screenshots, and the agent read the database to see whether it worked.
Ask: trigger.dev trigger <task> --env prod --wait, authenticated by the existing CLI login, printing status and output. That closes the deploy → verify loop for agents without anyone handling keys.
LowCreating the project needs a human
Expected, since it creates an account. But the agent didn't know the CLI was already logged in, so it asked me to create the project and paste the ref. It found out later with whoami.
Ask: trigger.dev init --create-project <name> when the CLI is already logged in, and have deploy offer to create the project when the config's ref doesn't exist.
MediumsyncEnvVars makes it easy to upload the wrong secret
We first used syncEnvVars to upload the database address and GITHUB_TOKEN from the deploying shell. A security review flagged that whatever token happens to be in that shell gets uploaded, possibly a personal token with far wider access, and it silently overwrites the value set in the dashboard. We narrowed it to the one database login and moved GITHUB_TOKEN to the dashboard.
Ask: show which variables a deploy will sync and whether each would overwrite a dashboard value, and warn when a value looks like a personal access token.
MediumA secret was visible while I pasted it
The new variable form had Reveal switched on while I pasted a GitHub token, so the token showed in plain text on screen, even though the field was marked Secret.
Ask: default Reveal to off when the value type is Secret.
MediumThe test payload looks like something I had to fill in
The Test page pre-fills a schedule payload with "scheduleId": "sched_1234" and "type": "IMPERATIVE". My first question after a successful run was "did i do it right?", because it looked like I'd left placeholder values.
Ask: for scheduled tasks, label it "Run now as if scheduled", or hide the payload behind an Advanced toggle.
LowI couldn't find the task or the variables
I asked "where do i find refresh-data-files" and how to add a variable. Environment Variables sits below the fold in the sidebar, under Observability, and a task can be tested from two places (Tasks, or the Test page) that don't obviously connect.
Ask: a Run button on each row of the Tasks list, and Environment Variables in the top group of the sidebar.
Low"Needs attention 3" for a production-only setup
All three variables showed as needing attention because they only exist in Production. For a project that only deploys to Production, that's expected, but it reads as a problem.
Ask: only flag a variable missing from an environment that has deploys.
LowUnexplained variable and build warnings
PYTHON_BIN_PATH appeared in my variables after the first deploy, with no note that the Python extension added it. The deploy log ended with three UndefinedVar Docker warnings ($SSL_CERT_FILE, $REQUESTS_CA_BUNDLE, $PIP_CERT), which look like my mistake but come from the generated Dockerfile.
Ask: mark system-added variables as such, and silence warnings from the platform's own Dockerfile.
What worked well
python.runScript ran unmodified standard-library scripts, and threw on a non-zero exit, which is what we needed to keep the last good copy of a file.
- The run view showed each Python script as its own span, with our log lines between them. "Still going" was easy to read.
- Declarative schedules in code (
schedules.task({ cron })) went live on deploy, with nothing to set up in a UI.
- The deploy worked first time, Docker build included.
Our own mistakes
Not Trigger.dev's fault, but part of the real story:
- A database address with
& broke shell loading. The connection string's query string has an &, so sourcing it unquoted from .env.local failed. Fixed by quoting the value.
- Wrong method on the old Neon driver. The agent called
sql.query(), which this version of @neondatabase/serverless doesn't have. Fixed by calling sql(text, params).
- Postgres refused to create the schema for the new role (
must be able to SET ROLE). Fixed by creating it as the owner and granting the role usage.
- Top-level
await failed the type-check in the local runner script. Fixed by leaving that script out of the type-checked files, like the repo's other scripts.
- The preview built before its database setting existed. The branch-scoped
DATABASE_URL was added after the push, so we had to push again to redeploy.
- The first local run skipped open source because no GitHub token was set. We used the local
gh login for one local run only and didn't upload it anywhere.
- The import changed table structure on every run. The YC import ran
CREATE TABLE IF NOT EXISTS and ALTER TABLE … ADD COLUMN IF NOT EXISTS each time, which only the table owner may do. Giving Trigger.dev a rows-only login meant first making the import skip that setup when the tables already exist.
- A schema grant from the wrong login (
permission denied for schema v1). The v1 login tried to give the pipeline access to a schema it didn't own. The setup script stopped before saving the new passwords, so it had to run again with the owner making the grant.
- An open question: the Trigger.dev run saved 1,262 open source projects, 15 fewer than the local run an hour earlier. Not explained yet; tomorrow's comparison will show if it persists.
Do it on your own project
This prompt carries everything above, including the mistakes, so your agent can skip them. Paste it into Claude Code (or another coding agent) at the root of your project. It plans first and stops for your go-ahead before changing anything.
Migrate this project's background and scheduled jobs to Trigger.dev (v4 SDK), without risking the live site.
1. Plan first, change nothing yet.
- List every job: cron functions, CI workflows that fetch or commit data, scripts run by hand, and pages that fetch from slow sources when a visitor loads them.
- For each: what it reads, what it writes, how often, how long it runs, and what happens today when it fails.
- Say which ones Trigger.dev should run and which should stay where they are. Trigger.dev runs jobs, not the website.
- Check Trigger.dev's current docs and pricing, and say which plan the number of schedules needs.
- Stop and show me the plan before building anything.
2. Build the new version beside the old one, not instead of it.
- Give the new pipeline its own copy of the data: a separate database schema or branch.
- Use a database login that can read the live data but gets "permission denied" if it writes it. Prove that with a real query.
- Have every task check which login it connected as, and refuse to run as any other.
- Reuse the existing job code; call it from Trigger.dev tasks rather than rewriting it.
- Run existing Python with @trigger.dev/python (python.runScript plus the pythonExtension build extension).
- Data files committed to git by a job move into a database table, served by an API route that falls back to the old file.
- Find any job code that runs CREATE or ALTER on every run. It needs the table owner, so make it skip that setup when the tables already exist.
3. Prove it locally before Trigger.dev is involved.
- Write a script that runs the same steps as the tasks, against the new copy.
- Add a compare step: counts per section and per source, rows on one side only, freshness of each data file.
- Show me the comparison.
4. Set up Trigger.dev.
- I have to create the account and project myself. First run `npx trigger.dev whoami` to see whether the CLI is already logged in, then ask me for the project ref.
- Use syncEnvVars only for the one database address the tasks need.
- Tell me to add any other secret (API tokens) in the dashboard by hand, as a Secret, with the narrowest scope that works. Never upload a token from your shell.
- Deploy with `npx trigger.dev deploy`.
5. Test it.
- The CLI can't start a run yet, so ask me to click Test on each task in the dashboard. Tell me exactly where it is: Tasks in the sidebar, or the Test page.
- Verify each run by reading what it wrote in the database. Don't trust the status alone.
- Don't read the CLI's stored login token to call the API yourself.
6. Switch over only when I say so.
- Then the new pipeline writes the live data, with a login that can change rows but not drop or alter tables.
- The old jobs keep running, but against a copy, with a login that can't write live.
- Each job refuses to run without its own login.
- Keep the daily comparison running. Make it fail when the live pipeline hasn't refreshed in 36 hours or drifts more than 5% from the old one, so Trigger.dev's failure alert covers it.
- Explain how to undo the switch.
7. Alerts.
- Walk me through creating an alert in the dashboard for failed task runs and failed deploys. That has to be done by hand.
Throughout:
- Never print or commit secrets or database addresses. Quote values in .env files: connection strings often contain &.
- Tell me at each step what you verified and what you didn't.
I then tried this prompt on three more projects, and each post ends with the version it produced. The newest is in the colin.chat post.
What's next
- Read the daily v1 vs live comparisons for a week or so.
- Retire v1: remove the Vercel schedules, the GitHub Action and the
v1 copy.
- Then the interesting part: news sources, the rolling company re-check, and approval waits before anything goes live.