nicktrn
3d978d337a
require suspendable state for checkpoints, fix snapshot processing queue
2025-04-30 16:54:02 +01:00
nicktrn
bb9ac5026a
runtime suspendable state and improved logs
2025-04-30 14:55:14 +01:00
nicktrn
5f522927ab
managed run logger accepts nested props
2025-04-30 13:52:21 +01:00
nicktrn
752770f17e
prefix engine run logs
2025-04-30 13:50:25 +01:00
nicktrn
9e2729c91d
runtime manager debug logs
2025-04-29 21:39:18 +01:00
nicktrn
3cb44a157c
restore hello world reference workspace imports
2025-04-29 21:10:18 +01:00
nicktrn
b13d8b70c2
fix entitlement validation when client doesn't exist
2025-04-29 21:09:48 +01:00
nicktrn
d6dfc661d4
Merge remote-tracking branch 'origin/main' into fix/resolve-waitpoints
2025-04-29 21:07:29 +01:00
github-actions[bot]
525285da7f
chore: Update version for release (v4-beta) ( #1994 )
...
* chore: Update version for release (v4-beta)
* Release 4.0.0-v4-beta.11
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Aitken <matt@mattaitken.com >
@trigger.dev/python@4.0.0-v4-beta.11
@trigger.dev/build@4.0.0-v4-beta.11
@trigger.dev/core@4.0.0-v4-beta.11
@trigger.dev/react-hooks@4.0.0-v4-beta.11
@trigger.dev/redis-worker@4.0.0-v4-beta.11
@trigger.dev/rsc@4.0.0-v4-beta.11
@trigger.dev/sdk@4.0.0-v4-beta.11
trigger.dev@4.0.0-v4-beta.11
2025-04-29 16:48:57 +01:00
nicktrn
3592db2566
remove more unused ipc schemas
2025-04-29 16:47:01 +01:00
nicktrn
f190420855
add fixme comments
2025-04-29 15:16:52 +01:00
nicktrn
38273ae5c8
branded type for resolver ids
2025-04-29 15:15:08 +01:00
nicktrn
e72bcc8a1d
fix ipc message type change
2025-04-29 12:44:01 +01:00
Eric Allam
07365cd405
realtime: fix streams missing chunks when streams are longer than 5 minutes and receive 408 Request Timeout errors. Also now support multiple client streams being sent to a single stream key ( #1993 )
...
* realtime: fix streams missing chunks when streams are longer than 5 minutes and receive 408 Request Timeout errors. Also now support multiple client streams being sent to a single stream key
* Safely release the reader lock
2025-04-29 12:42:38 +01:00
Matt Aitken
83d0e8710d
Fix for Schedules list page slow loading ( #1992 )
...
* Fix for Schedules list page slow loading
Getting BackgroundWorkerTask was very slow (Prisma was getting every single one…)
* Same fix for the upserting of schedules in the dashboard
2025-04-29 12:40:56 +01:00
Matt Aitken
280a6d0297
V4 dequeue test fixes ( #1991 )
...
* Fix priority tests by dequeuing in sequence
* Expect this test to fail until we support parallel dequeuing of an env with streaming
* Fix one and expect fail from the other
* Fix for batch trigger test dequeuing
* Fixed pending version test
2025-04-29 12:40:22 +01:00
nicktrn
4d46d20248
store and correctly resolve waipoints that come in early
2025-04-29 12:40:06 +01:00
nicktrn
b5ae558689
add resolver id helper
2025-04-29 12:10:29 +01:00
nicktrn
786416ccf9
rename to resolve waitpoint for clarity
2025-04-29 12:09:21 +01:00
nicktrn
082926a5ed
rename managed to shared runtime manager
2025-04-29 10:28:28 +01:00
nicktrn
b384dad994
remove dead code
2025-04-29 08:53:09 +01:00
Matt Aitken
f579afb4cc
V4 dequeue performance (return faster) ( #1989 )
...
* Loop through tenants only once, return as soon as we have enough.
* Hello world deadlock task set back to triggerAndWait
2025-04-28 14:49:38 +01:00
James Ritchie
3d744c6ecc
Mergent migration guide ( #1988 )
...
* Adds a migration guide for converting mergent tasks to trigger.dev
* Adds link to migration guide in the docs side bar
2025-04-28 14:18:09 +01:00
github-actions[bot]
5691480dac
Release 4.0.0-v4-beta.10 ( #1984 )
...
* chore: Update version for release (v4-beta)
* Release 4.0.0-v4-beta.10
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com >
@trigger.dev/build@4.0.0-v4-beta.10
@trigger.dev/core@4.0.0-v4-beta.10
@trigger.dev/python@4.0.0-v4-beta.10
@trigger.dev/react-hooks@4.0.0-v4-beta.10
@trigger.dev/redis-worker@4.0.0-v4-beta.10
@trigger.dev/rsc@4.0.0-v4-beta.10
@trigger.dev/sdk@4.0.0-v4-beta.10
trigger.dev@4.0.0-v4-beta.10
2025-04-28 13:34:34 +01:00
nicktrn
09a859d056
Fix managed run controller edge cases ( #1987 )
...
* parse disconnect description
* decrease snapshot poller logs
* remove another useless log
* attempt number change detection
* ensure no executions or child processes are being reused
* prevent snapshot change handler from running after execution stopped
* prevent creating zombie intervals on reset
* add changeset
* add enabled poller check before getting latest snapshot
* make attempt number update more explicit, improve logs
* remove deprecated heartbeat service
* ..also remove the import
2025-04-28 13:22:30 +01:00
Saadi Myftija
7bdbbdc433
Handle rate limit errors from Slack on new alert creation ( #1986 )
2025-04-28 11:07:59 +01:00
Matt Aitken
8b0e4f2367
Fix for completing batches (when there are idempotent runs) ( #1985 )
2025-04-25 18:41:20 +01:00
Eric Allam
e837500486
feat: v4 deadlock detection ( #1970 )
...
* Locked task runs will now require queues and tasks to be in the locked version
* Client errors caught in a run function now will skip retrying
* Extracted out the trigger queues logic
* extract validation, idempotency keys, payloads to concerns
* Extracted out a bunch of more stuff and getting trigger tests to work
* Add queue and locked version tests
* Deadlock detection WIP
* more deadlock detection
* Only detect deadlocks when the parent run is waiting on the child run
* Improve the error experience around deadlocks
* A couple tweaks to make CodeRabbit happy and fixing the tests in CI
* Fixed failing test
* Changeset
* wip
* Make sure to scope queries to the runtime env
2025-04-25 12:56:54 +01:00
github-actions[bot]
60fcf5fdac
Release 4.0.0-v4-beta.9 ( #1980 )
...
* chore: Update version for release (v4-beta)
* Release 4.0.0-v4-beta.9
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com >
@trigger.dev/python@4.0.0-v4-beta.9
@trigger.dev/build@4.0.0-v4-beta.9
@trigger.dev/core@4.0.0-v4-beta.9
@trigger.dev/react-hooks@4.0.0-v4-beta.9
@trigger.dev/redis-worker@4.0.0-v4-beta.9
@trigger.dev/rsc@4.0.0-v4-beta.9
@trigger.dev/sdk@4.0.0-v4-beta.9
trigger.dev@4.0.0-v4-beta.9
2025-04-25 12:43:32 +01:00
Eric Allam
3a62ee36d9
v3: prevent envs with excess queues from degrading dequeue performance ( #1982 )
...
* v3: WIP maximum queues per env implementation
* Add a queue distribution test
* Add edge case tests
* Set the marqs maximumQueuePerEnvCount
2025-04-24 18:02:49 +01:00
Matt Aitken
bb606a1fcd
Don’t allowed canceled delayed runs to be put into the queue ( #1981 )
2025-04-24 15:10:47 +01:00
Matt Aitken
e9c6cc71f0
New batch id length is longer ( #1944 )
2025-04-24 13:38:15 +01:00
Eric Allam
30f93521c8
fix: default machine config indexing now works ( #1979 )
2025-04-24 13:38:03 +01:00
Matt Aitken
18f77660e0
Runlock telemetry ( #1974 )
...
* Added error throwing tests to runlock
* Added some more run lock tests
* Added customConditions so the test can use the Logger
* Fix for JSON error
* Added a span to the run lock with a name
2025-04-24 13:37:33 +01:00
Matt Aitken
aa1027969b
Increase v4 visibility timeouts & don't try continue finished runs ( #1978 )
...
* Increase v4 visibility timeouts
* Added some logging for #continueRunIfUnblocked: run has no checkpoint
* If a run is finished or pending cancel, don’t try and continue it
2025-04-24 13:36:18 +01:00
James Ritchie
32ff569844
Fixes bug on Safari preventing Queues and Schedules tables from scrolling ( #1973 )
2025-04-24 11:40:47 +01:00
James Ritchie
dfca04aaea
Docs: Updates the run function params syntax + adds new run.list() example ( #1976 )
2025-04-24 11:31:22 +01:00
Matt Aitken
672a6b8be7
RedisWorker clean up orphaned items when dequeuing ( #1975 )
...
* Remove setting the invisibility timeout because it’s already done in the dequeue Lua script
* Remove orphaned queue items when dequeuing
* Added an ack to the visibility timeout test
2025-04-24 11:15:42 +01:00
github-actions[bot]
56ec0523b5
Release 4.0.0-v4-beta.8 ( #1972 )
...
* chore: Update version for release (v4-beta)
* Release 4.0.0-v4-beta.8
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com >
@trigger.dev/python@4.0.0-v4-beta.8
@trigger.dev/build@4.0.0-v4-beta.8
@trigger.dev/core@4.0.0-v4-beta.8
@trigger.dev/react-hooks@4.0.0-v4-beta.8
@trigger.dev/redis-worker@4.0.0-v4-beta.8
@trigger.dev/rsc@4.0.0-v4-beta.8
@trigger.dev/sdk@4.0.0-v4-beta.8
trigger.dev@4.0.0-v4-beta.8
2025-04-23 19:30:49 +01:00
nicktrn
73214d760e
Prevent large outputs from overwriting each other ( #1971 )
...
* large outputs now get unique keys again
* replace other attempt id occurences
* add changeset
2025-04-23 19:21:21 +01:00
James Ritchie
853a7ef7e4
Updates button copy and layout tweaks ( #1941 )
2025-04-23 16:33:46 +01:00
HUORT Louis
0726620525
Switch to docker compose v2 ( #1692 )
...
* refactor: docker compose migration
* fix compose download link
* set static name for electric container
---------
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com >
2025-04-23 14:29:26 +01:00
github-actions[bot]
cfb77159d7
Release 4.0.0-v4-beta.7 ( #1954 )
...
* chore: Update version for release (v4-beta)
* Release 4.0.0-v4-beta.7
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nicktrn <55853254+nicktrn@users.noreply.github.com >
@trigger.dev/python@4.0.0-v4-beta.7
@trigger.dev/build@4.0.0-v4-beta.7
@trigger.dev/core@4.0.0-v4-beta.7
@trigger.dev/react-hooks@4.0.0-v4-beta.7
@trigger.dev/redis-worker@4.0.0-v4-beta.7
@trigger.dev/rsc@4.0.0-v4-beta.7
@trigger.dev/sdk@4.0.0-v4-beta.7
trigger.dev@4.0.0-v4-beta.7
2025-04-23 13:34:26 +01:00
Saadi Myftija
2dbc085bb3
Fix alert creation bug related to the Slack integration ( #1967 )
...
* Fix alert creation bug related to the Slack integration
* Handle token_expired error from slack gracefully
2025-04-23 11:11:17 +01:00
Saadi Myftija
26aad58abd
Add fuzzy matching to the tasks filter ( #1960 )
...
* Add a custom react hook to enable fuzzy searching in item lists
* Use fuzzy filtering in the tasks view list
* Use fuzzy filtering in the test tasks list
* Remove the old tasks filtering react hook
2025-04-22 16:34:56 +01:00
Saadi Myftija
b62c17bec1
Show more recent payloads in the test task page ( #1961 )
2025-04-22 16:24:15 +01:00
Saadi Myftija
fab565256e
Allow empty payloads in test runs ( #1962 )
...
* Allow empty payloads in test runs
* Expose a basic linter configs in the code editor component
* Touch up the linting error elements in the code editor component
2025-04-22 16:23:52 +01:00
nicktrn
cedd932f99
Fix queued snapshot status handler ( #1963 )
...
* handle queued status change gracefully
* add resource monitor to references
* add resource monitor example
* improve runtime manager debug logs
* fix resource monitor example
* add changeset
2025-04-22 15:32:16 +01:00
Matt Aitken
e379fc15be
Fix redis worker debounce ( #1966 )
...
* Added some Redis worker debounce tests (one failing that reproduces a bug)
* Added some tests for acking
* Added a deduplicationKey to prevent acking when items are queued
* The worker passes the deduplicationKey back in for acking
* Improved logs and removed events from test
2025-04-22 15:24:39 +01:00
Dan
c0172d428d
added cursor rules docs page ( #1965 )
2025-04-22 15:23:47 +01:00