Matt Aitken
23eb9183e9
importEnvVars uses wrapZodFetch now
2024-05-28 16:18:32 +01:00
Matt Aitken
79b47fd5d1
Revert "Fixed merge issue: use zodFetch, not wrapZodFetch"
...
This reverts commit d137e4e1fe .
2024-05-28 16:16:34 +01:00
Matt Aitken
d137e4e1fe
Fixed merge issue: use zodFetch, not wrapZodFetch
2024-05-28 16:07:31 +01:00
nicktrn
16a365fd6f
add lazy attempts catalog entries
🚀 Publish Trigger.dev Docker / units (push) Failing after 12m38s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 12m38s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped
build-lazy-attempts-rc.4
2024-05-28 15:00:15 +01:00
nicktrn
839b349945
log checkpoint sizes
2024-05-28 14:26:31 +01:00
nicktrn
8f378b2a6e
improve prod worker logging
2024-05-28 14:06:49 +01:00
nicktrn
fed79e7a39
Merge branch 'main' into v3/worker-attempt-creation
2024-05-28 13:48:11 +01:00
Parker
782d4f75ae
Added tip for setting up github actions using npm run to simplify version pinning ( #1132 )
...
* added arg to install puppeteer deps to base image
* added tip on deploy setup
* removed docker changes
2024-05-28 12:10:24 +01:00
Matt Aitken
b6de469d07
Proxy rate limit ( #1131 )
...
* Updated worker types
* Cloudflare rate limiter applied to sendEvent/sendEvents
* Latest wrangler
* Updated to the latest compatibility_date and nest the unsafe bindings properly
* Added some types from a Discord members
* Better logging and added a reset header so the SDK can use it from inside the run function
* Set staging proxy rate limit to 100/60s
2024-05-28 12:09:05 +01:00
Matt Aitken
0dd3447c31
Improved the migration from v2 to v3 guide
2024-05-28 09:39:21 +01:00
nicktrn
b6e105ab87
Merge branch 'main' into v3/worker-attempt-creation
2024-05-28 09:09:39 +01:00
nicktrn
ee660a3a95
fix dev retries
2024-05-28 09:09:21 +01:00
nicktrn
8e5b71dedb
fix retry delay span runId
2024-05-27 11:57:27 +01:00
Matt Aitken
a5a5d3ae21
We could already disable the queue by not setting AWS_SQS_QUEUE_URL
...
This reverts commit ee3619bbb1 .
2024-05-27 11:13:55 +01:00
Matt Aitken
ee3619bbb1
Added env var to enable/disable the v2 SqsEventConsumer
2024-05-27 11:04:12 +01:00
Eric Allam
d9ad72446e
Abort v2 runs when the job version they’re associated with is disabled
2024-05-26 21:30:05 +01:00
Eric Allam
a56f9af9fe
Safeguard against out of control v2 run executions
2024-05-26 20:06:10 +01:00
Eric Allam
ece6ca678a
Fix issue when using SDK in non-node environments by scoping the stream import with node:
2024-05-25 21:43:16 +01:00
nicktrn
0ad7b839df
fix merge
2024-05-24 18:59:32 +01:00
nicktrn
ef100ad363
Merge branch 'main' into v3/worker-attempt-creation
2024-05-24 18:29:55 +01:00
Matt Aitken
6243ae30bb
Send a “sign-up” event to Loops ( #1129 )
2024-05-24 18:05:37 +01:00
nicktrn
02ae3f8eda
add changeset for misc fixes
2024-05-24 17:49:59 +01:00
nicktrn
127d1aa65c
increase wait for duration ipc timeout
2024-05-24 17:48:04 +01:00
nicktrn
48aadea320
switch to do hosted busybox image
2024-05-24 17:39:31 +01:00
nicktrn
bc71e2c14c
refactor unrecoverable error emit
2024-05-24 17:38:55 +01:00
nicktrn
5e4b4a3ad0
crash worker on unrecoverable errors
2024-05-24 17:35:00 +01:00
nicktrn
40a99f8ed1
remove checkpoint image after push
2024-05-24 17:22:37 +01:00
nicktrn
6aba347268
clear paused state before retry
2024-05-24 17:21:54 +01:00
nicktrn
e913c41ac6
fix retry mechanics
2024-05-24 17:21:43 +01:00
nicktrn
1e8743d4ce
fix graceful exit
2024-05-24 16:14:17 +01:00
nicktrn
92e257f139
rename supports lazy attempts migration
2024-05-24 16:07:27 +01:00
nicktrn
833a0f1688
improve prod run cancellation
2024-05-24 16:06:47 +01:00
Matt Aitken
cec20b96fd
Release 3.0.0-beta.34
@trigger.dev/airtable@3.0.0-beta.34
@trigger.dev/astro@3.0.0-beta.34
@trigger.dev/core-backend@3.0.0-beta.34
@trigger.dev/core@3.0.0-beta.34
@trigger.dev/eslint-plugin@3.0.0-beta.34
@trigger.dev/express@3.0.0-beta.34
@trigger.dev/github@3.0.0-beta.34
@trigger.dev/hono@3.0.0-beta.34
@trigger.dev/integration-kit@3.0.0-beta.34
@trigger.dev/linear@3.0.0-beta.34
@trigger.dev/nestjs@3.0.0-beta.34
@trigger.dev/nextjs@3.0.0-beta.34
@trigger.dev/openai@3.0.0-beta.34
@trigger.dev/plain@3.0.0-beta.34
@trigger.dev/react@3.0.0-beta.34
@trigger.dev/remix@3.0.0-beta.34
@trigger.dev/replicate@3.0.0-beta.34
@trigger.dev/resend@3.0.0-beta.34
@trigger.dev/sdk@3.0.0-beta.34
@trigger.dev/sendgrid@3.0.0-beta.34
@trigger.dev/shopify@3.0.0-beta.34
@trigger.dev/slack@3.0.0-beta.34
@trigger.dev/stripe@3.0.0-beta.34
@trigger.dev/supabase@3.0.0-beta.34
@trigger.dev/sveltekit@3.0.0-beta.34
@trigger.dev/testing@3.0.0-beta.34
@trigger.dev/typeform@3.0.0-beta.34
@trigger.dev/yalt@3.0.0-beta.34
trigger.dev@3.0.0-beta.34
@trigger.dev/cli@3.0.0-beta.34
@trigger.dev/otlp-importer@3.0.0-beta.34
2024-05-24 15:32:04 +01:00
github-actions[bot]
ea4d15536c
chore: Update version for release (beta) ( #1115 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-24 14:55:09 +01:00
Matt Aitken
2fa5780076
At the root path, if you have no projects yet but you do have an org then go to the new project page
2024-05-24 12:35:33 +01:00
Matt Aitken
914a394d15
Fix for create/edit schedule form blank page when an error is thrown from the service
2024-05-24 10:54:04 +01:00
Matt Aitken
80b1d8c6b1
Task list page: if there’s a newer version then show the icon/type etc for that
2024-05-24 10:54:04 +01:00
Matt Aitken
129c6022a0
Make the resolveEnvVars fn optional in the v3-catalog/trigger.config file
2024-05-24 10:54:04 +01:00
Eric Allam
1ca3b99ace
Remove “PAUSED” status from being filterable
2024-05-24 09:44:17 +01:00
Matt Aitken
dbbc7760f3
When logging out clear the projectId from the session if there is one
2024-05-23 18:27:31 +01:00
Matt Aitken
ff3cd97a3b
Fixed the syntax highlighting for JSON and TypeScript with the new Prisma renderer
2024-05-23 17:41:25 +01:00
Eric Allam
3a1b0c486a
v3: env var management API ( #1116 )
...
* WIP env var management API
* Add import env var API endpoint
* Adding docs and support for using both API keys and PATs when interacting with the env var endpoints
* WIP envvar SDK
* Uploading env vars in a variety of formats now works
* Finish env var endpoints and add resolveEnvVars hook
* Add changeset
2024-05-23 16:11:25 +01:00
Jacob Paris
1f462eaa2f
fix: secret store options was a circular import ( #1117 )
2024-05-23 16:04:21 +01:00
Jacob Paris
f537778dc7
Separate classes from client code ( #1119 )
...
* fix: move route to route folder
* fix: move service class to its own file
2024-05-23 16:03:45 +01:00
Matt Aitken
974bcc49e8
Speed up the Run log queries ( #1126 )
...
* Added traceId index to TaskEvent
* Get less data and get the trace from the run
* Use the read replica in the EventRepository
* Use the regular client to get the run because the redirect from test can be very fast
2024-05-23 15:32:43 +01:00
Matt Aitken
60cbb87b08
New TaskRunNumberCounter that uses taskIdentifier + environmentId ( #1124 )
...
* Switch to new TaskRunNumberCounter that uses taskIdentifier + environmentId
* Drop old TaskRunCounter table (not used anymore)
* Revert "Drop old TaskRunCounter table (not used anymore)"
This reverts commit d7311a3d03cd8020df02105da155ceec4fa24b1b.
2024-05-23 13:28:23 +01:00
Matt Aitken
1281d40e4b
v2: When a run hits the rate limit reschedule the re-execution ( #1125 )
...
* Fix: API rate limit error has the correct seconds until reset
* When a v2 run hits the rate limit, reschedule using the reset timestamp
* Still throw AutoYieldRateLimitErrors
* Reschedule runs from the rate limit
* The stress test timeout should be inside the task
* If the rate limit error is thrown, don’t retry the API request
2024-05-23 13:26:03 +01:00
Matt Aitken
116766f398
Request v3 access (from the app) and disable v2 projects by default ( #1123 )
...
* Added v2Enabled and hasRequestedV3 columns to Organization
* Don’t create a project when you create an org
* Form for requesting v3 access
* Reworked the new project form with the different version states. Refined copy on early access
* If the project isn’t in the org then redirect to the new project page
* Better message for existing users
* Tidy imports
* If it’s not the managed cloud then allow them to create v2 projects
2024-05-22 19:38:42 +01:00
Émile Ré
c815f28c84
Update contributing instructions ( #1121 )
...
* Add OPEN_API_KEY env var in example file
* Update prerequisites and first-time setup
2024-05-22 16:12:40 +01:00
Eric Allam
c092c0f9db
v3: Prevent legacy-peer-deps=true from breaking deploys
2024-05-22 15:46:13 +01:00