Commit Graph

4815 Commits

Author SHA1 Message Date
Matt Aitken a3abe4ca08 Documentation edits made through Mintlify web editor 2024-04-17 09:08:08 +01:00
Matt Aitken fad32a79dd Documentation edits made through Mintlify web editor 2024-04-17 09:07:16 +01:00
Matt Aitken 9d843caf83 Documentation edits made through Mintlify web editor 2024-04-16 14:33:07 +01:00
nicktrn 5eaf7bca34 don't require git for build 2024-04-12 19:02:38 +01:00
nicktrn 4a0368dec3 lockfile @trigger.dev/airtable@3.0.0-beta.12 @trigger.dev/astro@3.0.0-beta.12 @trigger.dev/cli@3.0.0-beta.12 @trigger.dev/core-backend@3.0.0-beta.12 @trigger.dev/core@3.0.0-beta.12 @trigger.dev/eslint-plugin@3.0.0-beta.12 @trigger.dev/express@3.0.0-beta.12 @trigger.dev/github@3.0.0-beta.12 @trigger.dev/hono@3.0.0-beta.12 @trigger.dev/integration-kit@3.0.0-beta.12 @trigger.dev/linear@3.0.0-beta.12 @trigger.dev/nestjs@3.0.0-beta.12 @trigger.dev/nextjs@3.0.0-beta.12 @trigger.dev/openai@3.0.0-beta.12 @trigger.dev/otlp-importer@3.0.0-beta.12 @trigger.dev/plain@3.0.0-beta.12 @trigger.dev/react@3.0.0-beta.12 @trigger.dev/remix@3.0.0-beta.12 @trigger.dev/resend@3.0.0-beta.12 @trigger.dev/sendgrid@3.0.0-beta.12 @trigger.dev/shopify@3.0.0-beta.12 @trigger.dev/slack@3.0.0-beta.12 @trigger.dev/stripe@3.0.0-beta.12 @trigger.dev/supabase@3.0.0-beta.12 @trigger.dev/sveltekit@3.0.0-beta.12 @trigger.dev/testing@3.0.0-beta.12 @trigger.dev/typeform@3.0.0-beta.12 @trigger.dev/yalt@3.0.0-beta.12 trigger.dev@3.0.0-beta.12 @trigger.dev/sdk@3.0.0-beta.12 @trigger.dev/replicate@3.0.0-beta.12 2024-04-12 18:18:49 +01:00
github-actions[bot] f10f120e55 chore: Update version for release (beta) (#1028)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-12 18:18:03 +01:00
nicktrn d3a18fbdf6 v3: cli and misc fixes for windows (#1027)
* fix: otlp-importer script

* update pluginPath

* Refactor script to ensure compatibility with both Windows and Unix platforms

* Revert command changes

* Fix: Init command was failing on Windows because of bad template paths

* Removed resolveInternalFilePath

* Path fixes for the dev command

* Fix for the import paths being wrong on Windows because the contain backslashes

* The metaOutputKey should have forward slashes in it

* Print the banner immediately, otherwise with bad internet you get a blank console for a long time

* Try normalizing the trigger.config import path

* Allow tsx and jsx files

* Improved task file names and paths

* Removed closing bracket for the upgrade message

* Log out the metafile outputs for debugging

* Log out the entryPointContents before esbuild

* Log the metafile out

* ballmerize the cli

* replace npm-watch with plain old nodemon

* fix text inputs on windows

* changeset

---------

Co-authored-by: Kritik Jiyaviya <kritikjiyaviya07@gmail.com>
Co-authored-by: Matt Aitken <matt@mattaitken.com>
2024-04-12 18:12:01 +01:00
nicktrn b82a07ad1c add missing ca certs to prod worker 2024-04-12 18:07:54 +01:00
Eric Allam fa81bf356a Fix pnpm lock file @trigger.dev/astro@3.0.0-beta.11 @trigger.dev/cli@3.0.0-beta.11 @trigger.dev/core-backend@3.0.0-beta.11 @trigger.dev/core@3.0.0-beta.11 @trigger.dev/eslint-plugin@3.0.0-beta.11 @trigger.dev/express@3.0.0-beta.11 @trigger.dev/github@3.0.0-beta.11 @trigger.dev/hono@3.0.0-beta.11 @trigger.dev/integration-kit@3.0.0-beta.11 @trigger.dev/linear@3.0.0-beta.11 @trigger.dev/nestjs@3.0.0-beta.11 @trigger.dev/nextjs@3.0.0-beta.11 @trigger.dev/otlp-importer@3.0.0-beta.11 @trigger.dev/plain@3.0.0-beta.11 @trigger.dev/react@3.0.0-beta.11 @trigger.dev/remix@3.0.0-beta.11 @trigger.dev/replicate@3.0.0-beta.11 @trigger.dev/resend@3.0.0-beta.11 @trigger.dev/sdk@3.0.0-beta.11 @trigger.dev/sendgrid@3.0.0-beta.11 @trigger.dev/shopify@3.0.0-beta.11 @trigger.dev/slack@3.0.0-beta.11 @trigger.dev/stripe@3.0.0-beta.11 @trigger.dev/supabase@3.0.0-beta.11 @trigger.dev/sveltekit@3.0.0-beta.11 @trigger.dev/testing@3.0.0-beta.11 @trigger.dev/typeform@3.0.0-beta.11 @trigger.dev/yalt@3.0.0-beta.11 trigger.dev@3.0.0-beta.11 @trigger.dev/openai@3.0.0-beta.11 @trigger.dev/airtable@3.0.0-beta.11 2024-04-12 12:34:32 +01:00
github-actions[bot] fec4dc3bef chore: Update version for release (beta) (#1025)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-12 12:34:02 +01:00
Eric Allam a80089c88f Fix the package version of trigger.dev with the rest of the @trigger.dev/* packages 2024-04-12 11:19:04 +01:00
nicktrn 63a643b7c9 v3: fix digest extraction (#1024)
* fix image digest extraction

* fix project ref cli arg override

* Create late-steaks-behave.md

---------

Co-authored-by: Eric Allam <eric@trigger.dev>
2024-04-12 11:10:52 +01:00
nicktrn efd970a901 v3: correctly handle triggering tasks prior to deploy (#1019)
* add waiting for deploy status

* sort tasks filter

* marqs: optional timestamp on enqueue

* add new status to consts

* detect and execute tasks waiting for deploy

* display runs list even without any deploys

* ensure we only execute after the run creation tx has completed

* ensure correct execution order after waiting for deploy
2024-04-12 11:03:22 +01:00
Eric Allam 89a5e9f7da Move gc to it’s own admin endpoint 2024-04-11 16:24:40 +01:00
James Ritchie 404931e224 Made the message when you’re in a developer preview project punchier 2024-04-11 14:34:45 +01:00
Eric Allam 57bf98307a Run gc before taking heapsnapshot 2024-04-11 13:53:14 +01:00
Eric Allam 7551adfeb6 Add ability to disable tracing to test if it’s the cause of the memory leak 2024-04-11 13:14:02 +01:00
Matt Aitken 69117e8ba1 Re-arrange the mint.json file so the v3 docs become the default 2024-04-11 11:22:18 +01:00
Eric Allam b580d53b59 Better identifiy heap snapshots 2024-04-11 11:13:36 +01:00
Eric Allam d81e21d2ec Remove admin config endpoint 2024-04-11 10:44:26 +01:00
Matt Aitken 826a64fe6f If your dev run hasn’t started, display an info panel saying you need to run the CLI 2024-04-11 10:36:44 +01:00
Eric Allam d1849b0ea9 Adding admin config endpoint (temp) 2024-04-11 10:30:45 +01:00
Eric Allam 3aa634d2b8 Add a metric for number of event repo subscribers and project subscribers 2024-04-11 10:30:37 +01:00
Matt Aitken 7de3fb01c7 Added more docs for replaying a run 2024-04-10 18:35:43 +01:00
github-actions[bot] 4ae9a3feac chore: Update version for release (beta) (#1023)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
trigger.dev@3.0.0-beta.10
2024-04-10 18:04:20 +01:00
Matt Aitken 5b18298fef Multiple machine CLI support (#1022)
* If a cli PAT exists, associate the authorization code with it

* Improved the error messages
2024-04-10 17:59:21 +01:00
nicktrn 7a9bd18ba2 v3: stop swallowing deployment errors and display them better (#1020)
* exit worker with code 111 for handled errors

* task monitor will ignore previously handled errors

* fix logging of index errors

* deployment error component

* changeset
2024-04-10 17:58:51 +01:00
Matt Aitken 03af44e545 Improved the title of one of the debugger scripts trigger.dev@3.0.0-beta.9 2024-04-10 11:23:17 +01:00
Matt Aitken 5776257663 Changed the Discord link to use the trigger.dev one. Mainly to bump the GitHub action 2024-04-10 11:08:56 +01:00
Matt Aitken d3997c9fc6 Merge branch 'main' into changeset-release/main 2024-04-10 10:20:56 +01:00
github-actions[bot] 0676ea9668 chore: Update version for release (beta) (#1013)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-10 10:14:00 +01:00
github-actions[bot] 7a4721e122 chore: Update version for release (beta) 2024-04-09 16:44:12 +00:00
Eric Allam a5aed0d139 Fix memory leak by calling punsubscribe instead of unsubscribe
Also adding a /metrics endpoint with a few custom metrics and the built-in prom-client ones
2024-04-09 17:42:28 +01:00
Eric Allam f1480595d5 Stop swallowing webapp logs when the span isn’t being recorded 2024-04-09 17:11:09 +01:00
Eric Allam 328947dbfd Use the dashboard url instead of the API url for the View logs link 2024-04-09 15:15:16 +01:00
Eric Allam 279717b092 v3: pnpm deploy & various fixes for dependency resolution (#1012)
* Don’t swallow some error messages when deploying

* Try and resolve dependency versions using pnpm/npm/yarn

* Adding some debug logs around dependency resolution

* Use npm list instead of npm show to resolve deps

* Improve the dependency resolution
2024-04-09 15:03:31 +01:00
Matt Aitken 702d198445 Latest lockfile @trigger.dev/airtable@3.0.0-beta.7 @trigger.dev/astro@3.0.0-beta.7 @trigger.dev/cli@3.0.0-beta.7 @trigger.dev/core-backend@3.0.0-beta.7 @trigger.dev/core@3.0.0-beta.7 @trigger.dev/eslint-plugin@3.0.0-beta.7 @trigger.dev/express@3.0.0-beta.7 @trigger.dev/github@3.0.0-beta.7 @trigger.dev/hono@3.0.0-beta.7 @trigger.dev/integration-kit@3.0.0-beta.7 @trigger.dev/linear@3.0.0-beta.7 @trigger.dev/nestjs@3.0.0-beta.7 @trigger.dev/nextjs@3.0.0-beta.7 @trigger.dev/openai@3.0.0-beta.7 @trigger.dev/otlp-importer@3.0.0-beta.7 @trigger.dev/plain@3.0.0-beta.7 @trigger.dev/react@3.0.0-beta.7 @trigger.dev/remix@3.0.0-beta.7 @trigger.dev/replicate@3.0.0-beta.7 @trigger.dev/resend@3.0.0-beta.7 @trigger.dev/sdk@3.0.0-beta.7 @trigger.dev/sendgrid@3.0.0-beta.7 @trigger.dev/shopify@3.0.0-beta.7 @trigger.dev/slack@3.0.0-beta.7 @trigger.dev/stripe@3.0.0-beta.7 @trigger.dev/supabase@3.0.0-beta.7 @trigger.dev/sveltekit@3.0.0-beta.7 @trigger.dev/testing@3.0.0-beta.7 @trigger.dev/typeform@3.0.0-beta.7 @trigger.dev/yalt@3.0.0-beta.7 trigger.dev@3.0.0-beta.8 2024-04-09 09:25:28 +01:00
github-actions[bot] 803f3c15ab chore: Update version for release (beta) (#1010)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 09:24:46 +01:00
nicktrn 1c24348f7d v3: add openssl to prod image and fix deploy command auth via env var (#1011)
* add openssl to prod worker

* make deploy command accept auth token via env var
2024-04-08 19:28:35 +01:00
Matt Aitken f854cb90eb Replay\Cancel a run (v3) (#1006)
* WIP on replaying a task from the run page

* Don’t pass the existing runs idempotency key, it will cause the replay to always return the original run

* Replay from the run list

* Don’t use fetchers in the replay/cancel dialogs

* API endpoint for replaying a run

* REST API docs (mostly coming soon) but added replay run

* replayRun function added to the SDK

* Cancel run added to the SDK

* v3-catalog file to test canceling and replaying

* Changed the SDK to be runs.replay and runs.cancel

* Removed comment

* Latest lockfile
2024-04-08 19:08:44 +01:00
github-actions[bot] 7268f17b00 chore: Update version for release (beta) (#1009)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
trigger.dev@3.0.0-beta.7
2024-04-08 14:11:17 +01:00
nicktrn 624ddce32f v3: fix prod worker node_modules permissions (#1008)
* set node user prior to npm install

* changeset

* add ffmpeg and ffprobe catalog entries
2024-04-08 14:05:05 +01:00
Matt Aitken 9be1557bb7 CLI v3 binary changed from trigger.dev to trigger.dev, to fix a Windows issues (#1007)
* Changed the v3 CLI binary name from trigger.dev to triggerdev to fix a Windows issue

* Changed the exec to triggerdev
2024-04-08 14:03:12 +01:00
nicktrn 6ce6f8e3ad fix lockfile @trigger.dev/airtable@3.0.0-beta.6 @trigger.dev/astro@3.0.0-beta.6 @trigger.dev/cli@3.0.0-beta.6 @trigger.dev/core-backend@3.0.0-beta.6 @trigger.dev/core@3.0.0-beta.6 @trigger.dev/eslint-plugin@3.0.0-beta.6 @trigger.dev/express@3.0.0-beta.6 @trigger.dev/github@3.0.0-beta.6 @trigger.dev/hono@3.0.0-beta.6 @trigger.dev/linear@3.0.0-beta.6 @trigger.dev/nestjs@3.0.0-beta.6 @trigger.dev/nextjs@3.0.0-beta.6 @trigger.dev/openai@3.0.0-beta.6 @trigger.dev/otlp-importer@3.0.0-beta.6 @trigger.dev/plain@3.0.0-beta.6 @trigger.dev/react@3.0.0-beta.6 @trigger.dev/remix@3.0.0-beta.6 @trigger.dev/replicate@3.0.0-beta.6 @trigger.dev/resend@3.0.0-beta.6 @trigger.dev/sdk@3.0.0-beta.6 @trigger.dev/sendgrid@3.0.0-beta.6 @trigger.dev/shopify@3.0.0-beta.6 @trigger.dev/slack@3.0.0-beta.6 @trigger.dev/stripe@3.0.0-beta.6 @trigger.dev/supabase@3.0.0-beta.6 @trigger.dev/sveltekit@3.0.0-beta.6 @trigger.dev/testing@3.0.0-beta.6 @trigger.dev/typeform@3.0.0-beta.6 @trigger.dev/yalt@3.0.0-beta.6 trigger.dev@3.0.0-beta.6 @trigger.dev/integration-kit@3.0.0-beta.6 2024-04-05 16:51:10 +01:00
github-actions[bot] d462b7a51b chore: Update version for release (beta) (#1001)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-05 16:45:38 +01:00
nicktrn f2894c177a switch to busybox and only call post start hook for restore (#1005) 2024-04-05 15:47:58 +01:00
Matt Aitken e35f29764a We want retrying enabled in dev by default, it’s confusing otherwise (#1004) 2024-04-05 14:45:19 +01:00
nicktrn 1207efbbad v3: prod image upgrade and fixes (#1003)
🚢 Publish Infra Images / build (coordinator) (push) Has been cancelled
🚢 Publish Infra Images / build (kubernetes-provider) (push) Has been cancelled
* fix shutdown after final attempt

* fix workdir permissions

* correctly handle self-hosted deploy errors

* switch to node:20-bookworm-slim

* add binaries catalog file

* changeset

* skip recommended packages

* post start hook retries

* comment and improve lifecycle retry
infra-prod-test infra-test-test
2024-04-05 13:09:07 +01:00
nicktrn 7ea8532cce v3: crash observability (#1002)
* indexing resource limits

* refactor and storage limits

* handle and display worker crashes

* enable prod cancellation

* fix reconnect delay

* improve crash messages

* log and display crash events

* changeset
2024-04-05 13:00:20 +01:00
Eric Allam 6642228f26 Fixing the dev & shared queue consumer telemetry so we can see what’s going on 2024-04-04 17:54:33 +01:00