Commit Graph

5272 Commits

Author SHA1 Message Date
Eric Allam 5d6488e197 support for waits and better flushing & process cleanup 2024-08-22 14:31:32 +01:00
Eric Allam 36b6f66467 deployed tasks running and executing 🎉 2024-08-22 14:31:32 +01:00
Eric Allam 6cabc8da5f deploy run executions WIP, extracted TaskRunProcess into 1 place 2024-08-22 14:31:32 +01:00
Eric Allam cc8eb34e10 seed tasks with the machine preset if listed in the config 2024-08-22 14:31:32 +01:00
Eric Allam a7fa91f1d8 WIP bun support 2024-08-22 14:31:32 +01:00
Eric Allam 41a046cf1c WIP bun runtime 2024-08-22 14:31:32 +01:00
Eric Allam e1370134e3 improve the syncEnvVars output and adapt resolveEnvVars 2024-08-22 14:31:32 +01:00
Eric Allam 059f1887f7 deployment WIP 2024-08-22 14:31:32 +01:00
Eric Allam 104301a104 Adding package preview release 2024-08-22 14:31:32 +01:00
Eric Allam ffebbb81ae auto-upgrade config to non-deprecated alternatives 2024-08-22 14:31:32 +01:00
Eric Allam de69e72373 worker manifest now has the config path 2024-08-22 14:31:32 +01:00
Eric Allam 8caebdce88 Fixed timeout 2024-08-22 14:31:32 +01:00
Eric Allam d109300492 support for cjs and esm javascript 2024-08-22 14:31:32 +01:00
Eric Allam 6dea6e1c7d provide worker files as part of the worker creation on the server 2024-08-22 14:31:32 +01:00
Eric Allam 2b85d53028 debugging achieved internally 2024-08-22 14:31:32 +01:00
Eric Allam 510ed6b728 Get instrumentation to work with openai 2024-08-22 14:31:32 +01:00
Eric Allam 7130e305fd dev runs working 2024-08-22 14:31:32 +01:00
Eric Allam 6bf65838af Move indexing to it’s own entry point, simplify code 2024-08-22 14:31:32 +01:00
Eric Allam e37d8d4085 centralize dev logging using event emitter 2024-08-22 14:31:32 +01:00
Eric Allam ff9013bf01 getting closer to executing dev runs... 2024-08-22 14:31:32 +01:00
Eric Allam de81f046b2 Indexing of the v3 catalog 2024-08-22 14:31:32 +01:00
Eric Allam 98046c58ae bringing back the background worker stuff 2024-08-22 14:31:32 +01:00
Eric Allam 5bc482e3bc cleaned up some repetition and structure of the entry point stuff 2024-08-22 14:31:32 +01:00
Eric Allam f0898714ae dev command WIP 2024-08-22 14:31:32 +01:00
Eric Allam ab3a642d39 using package-json-from-dist to get package version now in core and cli 2024-08-22 14:31:32 +01:00
Eric Allam a2eb896218 cli now building and loadable 2024-08-22 14:31:32 +01:00
Eric Allam 1125d61bdc Fix up some of the commands 2024-08-22 14:31:32 +01:00
Eric Allam 7caba3a02f move core-apps to core/v3/apps, remove core-apps, start converting cli-v3 2024-08-22 14:31:32 +01:00
Eric Allam 4febab49cd Removed hono 2024-08-22 14:31:32 +01:00
Eric Allam e6c8b459e6 convert @trigger.dev/sdk to tshy 2024-08-22 14:31:32 +01:00
Eric Allam cc7a438c51 move core-backend code into core subpath export 2024-08-22 14:31:32 +01:00
Eric Allam b2852ab283 Fixed core test 2024-08-22 14:31:32 +01:00
Eric Allam d6ca192760 Switch from jest to vitest in @trigger.dev/core 2024-08-22 14:31:32 +01:00
Eric Allam cadf66c746 convert @trigger.dev/core to tshy 2024-08-22 14:31:32 +01:00
Eric Allam 8b9caeea7c use the npm yalt package in the webapp 2024-08-22 14:31:32 +01:00
Eric Allam 835c9cb671 remove more v2 code and run pnpm install 2024-08-22 14:31:32 +01:00
Eric Allam d71925fe27 remove v2 only packages, will be moved to a dedicated repo 2024-08-22 14:31:32 +01:00
Eric Allam 3eb1678710 upgrade @opentelemetry packages to the latest versions 2024-08-22 14:31:32 +01:00
James Ritchie 2cd8658190 If an org has been deleted, show a ☠️ icon on the admin page 2024-08-22 13:15:00 +01:00
James Ritchie e5895424db Added a link to a Next.js example in the docs 2024-08-21 15:58:18 +01:00
Matt Aitken a724a6fa01 Added Task index parentId 2024-08-21 15:54:23 +01:00
Matt Aitken ba7bbdbbdb Dashboard query improvements (#1266)
* Remove run count from JobPresenter

* Remove job/integration counts from org/projects query

* Removed v2 counts from ProjectPresenter query

* JobRun index idx_jobrun_organizationId_createdAt

* JobRun index idx_jobrun_versionId

* BatchTaskRunItem index taskRunAttemptId

* BatchTaskRunItem index taskRunId
2024-08-21 15:49:18 +01:00
Matt Aitken 7746302b51 Run failed alerts (#1262)
* Add new ProjectAlertType ‘TASK_RUN’ and then migrate channels to it

* WIP new alerts for run failures

* Consolidate failed run status into taskStatus.ts

* Added the read replica into BaseService, could be useful

* Send task run alerts code

* Revert "Added the read replica into BaseService, could be useful"

This reverts commit cc2348a40254ea3f9e11c0feaf303ecd8794433a.

* Allow adding task run alerts in the UI

* Use task run alert not attempt alert…

* Use the primary
2024-08-21 14:53:48 +01:00
Matt Aitken 6558e5f8eb Fix for permanently frozen tasks when at max concurrency
Heartbeats now free up concurrency for paused/frozen runs, then they don’t get crashed but get acked by the sharedQueueConsumer
2024-08-21 11:37:02 +01:00
Matt Aitken 9f07df8abc Don’t nack in requeueTaskRun if it’s WAITING_TO_RESUME or PAUSED 2024-08-20 19:00:29 +01:00
Matt Aitken 8ad599f90e Try set the checkpointEventId when resuming batches and dependency 2024-08-20 16:09:43 +01:00
Matt Aitken 78dac99d72 Release 3.0.0-beta.55
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 4s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 2s
🚀 Publish Trigger.dev Docker / units (push) Failing after 19s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-infra (push) Has been skipped
@trigger.dev/airtable@3.0.0-beta.55 @trigger.dev/astro@3.0.0-beta.55 @trigger.dev/cli@3.0.0-beta.55 @trigger.dev/core@3.0.0-beta.55 @trigger.dev/hono@3.0.0-beta.55 @trigger.dev/linear@3.0.0-beta.55 @trigger.dev/nestjs@3.0.0-beta.55 @trigger.dev/nextjs@3.0.0-beta.55 @trigger.dev/otlp-importer@3.0.0-beta.55 @trigger.dev/react@3.0.0-beta.55 @trigger.dev/replicate@3.0.0-beta.55 @trigger.dev/sdk@3.0.0-beta.55 @trigger.dev/shopify@3.0.0-beta.55 @trigger.dev/slack@3.0.0-beta.55 @trigger.dev/stripe@3.0.0-beta.55 @trigger.dev/supabase@3.0.0-beta.55 @trigger.dev/sveltekit@3.0.0-beta.55 @trigger.dev/testing@3.0.0-beta.55 @trigger.dev/typeform@3.0.0-beta.55 @trigger.dev/yalt@3.0.0-beta.55 v.docker.3.0.0-beta.55 v.docker.3.0.0-beta.56 @trigger.dev/github@3.0.0-beta.55 @trigger.dev/plain@3.0.0-beta.55 @trigger.dev/eslint-plugin@3.0.0-beta.55 @trigger.dev/resend@3.0.0-beta.55 @trigger.dev/openai@3.0.0-beta.55 @trigger.dev/integration-kit@3.0.0-beta.55 @trigger.dev/sendgrid@3.0.0-beta.55 @trigger.dev/remix@3.0.0-beta.55 @trigger.dev/core-backend@3.0.0-beta.55 trigger.dev@3.0.0-beta.55 @trigger.dev/express@3.0.0-beta.55
2024-08-20 15:50:14 +01:00
James Ritchie d6786002b2 Full Next.js guide (#1259)
* tasks no longer inside a group in the side menu (and added “cron”)

* Delay using a timezone

* Added React Not Defined error to the troubleshooting page

* Improved the React common problem

* Link to v2 docs

* New Development section and entry in Common Problems

* Concurrently running the terminal

* Fixed the .env weirdness

* Added section on creating PATs for Github actions

* Improved the Machine spec and limits page

* Quick start steps now have nice images

* Added a diagram for the lifecycle functions

* Added note about onFailure

* CRON -> cron/Cron

* WIP adding more steps to the next.js guide

* WIP next.js

* WIP adding tabbed steps for pages/app router

* References to Infisical links to their homepage so it’s clearer

* WIP updating the nextjs guide

* WIP nextjs guide

* More nextjs guide steps

* More copy

* Added rate limit trouble shooting

* Removed old prisma error title

* Added secret key step

* Added a note for logging in using a specified domain if self hosting

* typo

* App router docs copy

* Deploy copy update

* Added a favicon.png to fix a docs build error

* Removed unused snippet

* Server actions now inside a tab

* Server actions + restructured the triggering section

* Added troubleshooting snippet for react event handlers

* Added a new troubleshooting snippet for ESM

* Updated old replaying image to reflect the new UI

* Removed references to reattempting

* Updated replaying from the run page

* Added a bulk replay section

* Updated the writing tasks intro page

* Removed edge runtime code for now

* Added edge runtime – it seems to just work!

* import type
2024-08-20 14:50:39 +01:00
github-actions[bot] 9d529e9f17 chore: Update version for release (beta) (#1264)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-20 14:46:19 +01:00
Matt Aitken d48eb9bac8 Fix: was showing deleted team member dev environments (#1261)
* Env vars: don’t show deleted dev environments

* Concurrency limits: don’t show deleted dev environments

* Create/edit schedule: don’t show deleted dev environments
2024-08-20 14:03:24 +01:00