Skip to content

Commit 074ad78

Browse files
committed
Removes changelog from migration guide
1 parent 8a4ae7c commit 074ad78

File tree

1 file changed

+0
-234
lines changed

1 file changed

+0
-234
lines changed

docs/migrating-from-v3.mdx

Lines changed: 0 additions & 234 deletions
Original file line numberDiff line numberDiff line change
@@ -338,237 +338,3 @@ const batchHandle = await tasks.batchTrigger([
338338
const runs = await batchHandle.runs.list();
339339
console.log(runs);
340340
```
341-
342-
## v4 beta Changelog
343-
344-
<Update label="April 9, 2025" description="v4.0.0-beta.0">
345-
[Trigger.dev v4
346-
release](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.0).
347-
Please see our upgrade to v4 docs to view the full changelog. Run Engine 2.0 (alpha)
348-
([#1575](https://github.com/triggerdotdev/trigger.dev/pull/1575)), improved warm start times by
349-
eagerly creating the child TaskRunProcess when a previous run as completed
350-
([#1879](https://github.com/triggerdotdev/trigger.dev/pull/1879)), and new lifecycle hooks
351-
([#1817](https://github.com/triggerdotdev/trigger.dev/pull/1817)).
352-
</Update>
353-
354-
<Update label="April 11, 2025" description="v4.0.0-beta.1">
355-
[Release
356-
v4.0.0-beta.1](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.1).
357-
Fixed init.ts in custom trigger dirs and init command now correctly installs v4-beta packages
358-
([#1914](https://github.com/triggerdotdev/trigger.dev/pull/1914)). Updated nypm package to support
359-
test-based bun.lock files and handle flush errors gracefully in dev
360-
([#1914](https://github.com/triggerdotdev/trigger.dev/pull/1914)).
361-
</Update>
362-
363-
<Update label="April 15, 2025" description="v4.0.0-beta.2">
364-
[Release
365-
v4.0.0-beta.2](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.2).
366-
Managed run controller performance and reliability improvements
367-
([#1927](https://github.com/triggerdotdev/trigger.dev/pull/1927)).
368-
</Update>
369-
370-
<Update label="April 16, 2025" description="v4.0.0-beta.3">
371-
[Release
372-
v4.0.0-beta.3](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.3).
373-
Improved usage flushing ([#1931](https://github.com/triggerdotdev/trigger.dev/pull/1931)) and
374-
fixed stalled run detection ([#1934](https://github.com/triggerdotdev/trigger.dev/pull/1934)).
375-
</Update>
376-
377-
<Update label="April 17, 2025" description="v4.0.0-beta.5">
378-
[Release
379-
v4.0.0-beta.5](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.5).
380-
Updated dependencies with various bug fixes and improvements.
381-
</Update>
382-
383-
<Update label="April 18, 2025" description="v4.0.0-beta.6">
384-
[Release
385-
v4.0.0-beta.6](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.6).
386-
The dev command now uses the platform-provided engine URL
387-
([#1949](https://github.com/triggerdotdev/trigger.dev/pull/1949)).
388-
</Update>
389-
390-
<Update label="April 23, 2025" description="v4.0.0-beta.7">
391-
[Release
392-
v4.0.0-beta.7](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.7).
393-
Fixed runLimiter check on dequeueRuns
394-
([#1953](https://github.com/triggerdotdev/trigger.dev/pull/1953)) and QUEUED status snapshot
395-
handler ([#1963](https://github.com/triggerdotdev/trigger.dev/pull/1963)).
396-
</Update>
397-
398-
<Update label="April 23, 2025" description="v4.0.0-beta.8">
399-
[Release
400-
v4.0.0-beta.8](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.8).
401-
Prevented large outputs from overwriting each other
402-
([#1971](https://github.com/triggerdotdev/trigger.dev/pull/1971)).
403-
</Update>
404-
405-
<Update label="April 25, 2025" description="v4.0.0-beta.9">
406-
[Release
407-
v4.0.0-beta.9](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.9).
408-
Fixed default machine config indexing
409-
([#1979](https://github.com/triggerdotdev/trigger.dev/pull/1979)).
410-
</Update>
411-
412-
<Update label="April 28, 2025" description="v4.0.0-beta.10">
413-
[Release
414-
v4.0.0-beta.10](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.10).
415-
TriggerApiError 4xx errors no longer cause tasks to be retried
416-
([#1970](https://github.com/triggerdotdev/trigger.dev/pull/1970)). Fixed polling interval reset
417-
bug that could create duplicate intervals, protected against unexpected attempt number changes,
418-
and prevented run execution zombies after warm starts
419-
([#1987](https://github.com/triggerdotdev/trigger.dev/pull/1987)).
420-
</Update>
421-
422-
<Update label="April 29, 2025" description="v4.0.0-beta.11">
423-
[Release
424-
v4.0.0-beta.11](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.11).
425-
Updated dependencies with various bug fixes and improvements.
426-
</Update>
427-
428-
<Update label="May 3, 2025" description="v4.0.0-beta.12">
429-
[Release
430-
v4.0.0-beta.12](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.12).
431-
Display clickable links in Cursor terminal
432-
([#1998](https://github.com/triggerdotdev/trigger.dev/pull/1998)) and added AI assistance link
433-
when you have build errors ([#1925](https://github.com/triggerdotdev/trigger.dev/pull/1925)).
434-
Added validation when passing a directory to deploy command with helpful hints
435-
([#2013](https://github.com/triggerdotdev/trigger.dev/pull/2013)).
436-
</Update>
437-
438-
<Update label="May 7, 2025" description="v4.0.0-beta.13">
439-
[Release
440-
v4.0.0-beta.13](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.13).
441-
Correctly resolved waitpoints that come in early, ensured correct state before requesting
442-
suspension, and fixed race conditions in snapshot processing
443-
([#2006](https://github.com/triggerdotdev/trigger.dev/pull/2006)). Always print full deploy logs
444-
in CI ([#2006](https://github.com/triggerdotdev/trigger.dev/pull/2006)).
445-
</Update>
446-
447-
<Update label="May 8, 2025" description="v4.0.0-beta.14">
448-
[Release
449-
v4.0.0-beta.14](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.14).
450-
Updated dependencies with various bug fixes and improvements.
451-
</Update>
452-
453-
<Update label="May 14, 2025" description="v4.0.0-beta.15">
454-
[Release
455-
v4.0.0-beta.15](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.15).
456-
Added external log exporters and fixed missing external trace exporters in deployed tasks
457-
([#2038](https://github.com/triggerdotdev/trigger.dev/pull/2038)). Log images sizes for
458-
self-hosted deploys ([#1764](https://github.com/triggerdotdev/trigger.dev/pull/1764)) and fixed
459-
init.ts auto-import for deployed workers
460-
([#2041](https://github.com/triggerdotdev/trigger.dev/pull/2041)).
461-
</Update>
462-
463-
<Update label="May 14, 2025" description="v4.0.0-beta.16">
464-
[Release
465-
v4.0.0-beta.16](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.16).
466-
Fixed init.ts detection when using the sentry esbuild plugin
467-
([#2051](https://github.com/triggerdotdev/trigger.dev/pull/2051)).
468-
</Update>
469-
470-
<Update label="May 22, 2025" description="v4.0.0-beta.17">
471-
[Release
472-
v4.0.0-beta.17](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.17).
473-
Exposed esbuild `keepNames` ([#2091](https://github.com/triggerdotdev/trigger.dev/pull/2091)) and
474-
`minify` options (experimental) ([#2091](https://github.com/triggerdotdev/trigger.dev/pull/2091)).
475-
Added `experimental_autoDetectExternal` trigger config option
476-
([#2083](https://github.com/triggerdotdev/trigger.dev/pull/2083)) and output esbuild metafile,
477-
which can be inspected after `deploy --dry run`
478-
([#2087](https://github.com/triggerdotdev/trigger.dev/pull/2087)).
479-
</Update>
480-
481-
<Update label="May 22, 2025" description="v4.0.0-beta.18">
482-
[Release
483-
v4.0.0-beta.18](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.18).
484-
Fixed dev runs ([#2094](https://github.com/triggerdotdev/trigger.dev/pull/2094)).
485-
</Update>
486-
487-
<Update label="June 2, 2025" description="v4.0.0-beta.19">
488-
[Release
489-
v4.0.0-beta.19](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.19).
490-
Added import timings and bundle size analysis - the dev command now warns about slow imports
491-
([#2114](https://github.com/triggerdotdev/trigger.dev/pull/2114)). Fixed metadata collapsing
492-
correctness ([#2115](https://github.com/triggerdotdev/trigger.dev/pull/2115)), added support for
493-
Preview branches in v4 projects ([#2086](https://github.com/triggerdotdev/trigger.dev/pull/2086)),
494-
can now set project ref using the TRIGGER_PROJECT_REF env var
495-
([#2109](https://github.com/triggerdotdev/trigger.dev/pull/2109)), and fixed `syncEnvVars` for
496-
non-preview deployments ([#2131](https://github.com/triggerdotdev/trigger.dev/pull/2131)).
497-
</Update>
498-
499-
<Update label="June 3, 2025" description="v4.0.0-beta.20">
500-
[Release
501-
v4.0.0-beta.20](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.20).
502-
Updated dependencies with various bug fixes and improvements.
503-
</Update>
504-
505-
<Update label="June 6, 2025" description="v4.0.0-beta.21">
506-
[Release
507-
v4.0.0-beta.21](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.21).
508-
Runtime agnostic SDK config via env vars
509-
([#2132](https://github.com/triggerdotdev/trigger.dev/pull/2132)) and fixed update command version
510-
range handling ([#2153](https://github.com/triggerdotdev/trigger.dev/pull/2153)). Resolved issue
511-
where CLI could get stuck during deploy finalization, unified local and remote build logic with
512-
multi-platform build support, improved switch command which now accepts profile name as an
513-
argument, registry configuration is now fully managed by the webapp, the deploy `--self-hosted`
514-
flag is no longer required, and enhanced deployment error reporting and image digest retrieval
515-
([#2138](https://github.com/triggerdotdev/trigger.dev/pull/2138)). Updated profile switcher
516-
([#2150](https://github.com/triggerdotdev/trigger.dev/pull/2150)).
517-
</Update>
518-
519-
<Update label="July 4, 2025" description="v4.0.0-beta.22">
520-
[Release
521-
v4.0.0-beta.22](https://github.com/triggerdotdev/trigger.dev/releases/tag/trigger.dev%404.0.0-v4-beta.22).
522-
Fix update command version mismatch detection
523-
([#2199](https://github.com/triggerdotdev/trigger.dev/pull/2199)). Add project details to the
524-
whoami command ([#2231](https://github.com/triggerdotdev/trigger.dev/pull/2231)). Serialize
525-
metadata to prevent invalid metadata from breaking run completions
526-
([#2219](https://github.com/triggerdotdev/trigger.dev/pull/2219))
527-
528-
This release also includes a new experimental `processKeepAlive` option, which allows you to
529-
keep the process alive after the run has completed for the next warm start, which makes warm starts even faster.
530-
531-
Currently during a warm start, we still recreate the actual task run process between runs, leading to a completely fresh global environment for each run. This experimental option will keep the task run process alive between run executions, leading to even faster warm starts. This option is respected in both the `dev` CLI and in deployed tasks.
532-
533-
To enable this option, add this to your `trigger.config.ts`:
534-
535-
```ts
536-
import { defineConfig } from "@trigger.dev/sdk";
537-
538-
export default defineConfig({
539-
project: "<project ref>",
540-
// This is false by default
541-
experimental_processKeepAlive: true,
542-
maxDuration: 60,
543-
});
544-
```
545-
546-
You can also pass an object to `experimental_processKeepAlive` to provide more options:
547-
548-
```ts
549-
import { defineConfig } from "@trigger.dev/sdk";
550-
551-
export default defineConfig({
552-
project: "<project ref>",
553-
experimental_processKeepAlive: {
554-
enabled: true,
555-
// After 20 runs execute with a single process, we'll restart the process and start fresh
556-
maxExecutionsPerProcess: 20,
557-
// In dev, you can combine this option with setting a max pool size, giving you the ability to limit the number of processes created on your local dev machine. Has no effect on deployed tasks
558-
devMaxPoolSize: 10,
559-
},
560-
maxDuration: 60,
561-
});
562-
```
563-
564-
## Gotchas
565-
566-
- Be careful with memory usage and memory leaks, as this will cause memory to persist across run executions.
567-
- It's possible different tasks get executed in the same persisted process.
568-
- If you configure any 3rd party SDKs globally using env vars for API keys, those SDKs will not change between runs. So if you change an env var between runs, the SDK will be "stale" and continue using the old env var value. Instead, you should initialize SDKs using env vars at runtime (in any of the lifecycle hooks or inside the `run` function of a task.
569-
- Cancelling a task will cause the task run process to be restarted. Exiting the process is the only reliable way to actually stop a running function from stopping.
570-
- This DOES NOT effect cold starts, warm starts only will be improved.
571-
572-
We recommend enabling this option and testing in a staging or preview environment before trying it out in prod, as there could be unknown issues depending on what you are doing in your tasks. [#2183](https://github.com/triggerdotdev/trigger.dev/pull/2183)
573-
574-
</Update>

0 commit comments

Comments
 (0)