@trigger.dev/core 3.3.13 → 3.3.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/apiClient/runStream.js +2 -2
- package/dist/commonjs/v3/errors.d.ts +8 -0
- package/dist/commonjs/v3/errors.js +27 -1
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +131 -100
- package/dist/commonjs/v3/schemas/api.js +21 -21
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +62 -0
- package/dist/commonjs/v3/schemas/fetch.d.ts +115 -0
- package/dist/commonjs/v3/schemas/messages.d.ts +143 -0
- package/dist/commonjs/v3/schemas/resources.d.ts +44 -0
- package/dist/commonjs/v3/schemas/schemas.d.ts +92 -0
- package/dist/commonjs/v3/schemas/schemas.js +9 -0
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +2 -5
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/runStream.js +2 -2
- package/dist/esm/v3/errors.d.ts +8 -0
- package/dist/esm/v3/errors.js +24 -0
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +131 -100
- package/dist/esm/v3/schemas/api.js +21 -21
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +62 -0
- package/dist/esm/v3/schemas/fetch.d.ts +115 -0
- package/dist/esm/v3/schemas/messages.d.ts +143 -0
- package/dist/esm/v3/schemas/resources.d.ts +44 -0
- package/dist/esm/v3/schemas/schemas.d.ts +92 -0
- package/dist/esm/v3/schemas/schemas.js +10 -1
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +2 -5
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -1410,18 +1410,35 @@ export declare const RetryOptions: z.ZodObject<{
|
|
|
1410
1410
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1411
1411
|
*/
|
|
1412
1412
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1413
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1414
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1415
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1416
|
+
*/
|
|
1417
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1418
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1419
|
+
}, "strip", z.ZodTypeAny, {
|
|
1420
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1421
|
+
}, {
|
|
1422
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1423
|
+
}>>;
|
|
1413
1424
|
}, "strip", z.ZodTypeAny, {
|
|
1414
1425
|
factor?: number | undefined;
|
|
1415
1426
|
minTimeoutInMs?: number | undefined;
|
|
1416
1427
|
maxTimeoutInMs?: number | undefined;
|
|
1417
1428
|
randomize?: boolean | undefined;
|
|
1418
1429
|
maxAttempts?: number | undefined;
|
|
1430
|
+
outOfMemory?: {
|
|
1431
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1432
|
+
} | undefined;
|
|
1419
1433
|
}, {
|
|
1420
1434
|
factor?: number | undefined;
|
|
1421
1435
|
minTimeoutInMs?: number | undefined;
|
|
1422
1436
|
maxTimeoutInMs?: number | undefined;
|
|
1423
1437
|
randomize?: boolean | undefined;
|
|
1424
1438
|
maxAttempts?: number | undefined;
|
|
1439
|
+
outOfMemory?: {
|
|
1440
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1441
|
+
} | undefined;
|
|
1425
1442
|
}>;
|
|
1426
1443
|
export type RetryOptions = z.infer<typeof RetryOptions>;
|
|
1427
1444
|
export declare const QueueOptions: z.ZodObject<{
|
|
@@ -1543,18 +1560,35 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1543
1560
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1544
1561
|
*/
|
|
1545
1562
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1563
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1564
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1565
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1566
|
+
*/
|
|
1567
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1568
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1569
|
+
}, "strip", z.ZodTypeAny, {
|
|
1570
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1571
|
+
}, {
|
|
1572
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1573
|
+
}>>;
|
|
1546
1574
|
}, "strip", z.ZodTypeAny, {
|
|
1547
1575
|
factor?: number | undefined;
|
|
1548
1576
|
minTimeoutInMs?: number | undefined;
|
|
1549
1577
|
maxTimeoutInMs?: number | undefined;
|
|
1550
1578
|
randomize?: boolean | undefined;
|
|
1551
1579
|
maxAttempts?: number | undefined;
|
|
1580
|
+
outOfMemory?: {
|
|
1581
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1582
|
+
} | undefined;
|
|
1552
1583
|
}, {
|
|
1553
1584
|
factor?: number | undefined;
|
|
1554
1585
|
minTimeoutInMs?: number | undefined;
|
|
1555
1586
|
maxTimeoutInMs?: number | undefined;
|
|
1556
1587
|
randomize?: boolean | undefined;
|
|
1557
1588
|
maxAttempts?: number | undefined;
|
|
1589
|
+
outOfMemory?: {
|
|
1590
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1591
|
+
} | undefined;
|
|
1558
1592
|
}>>;
|
|
1559
1593
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1560
1594
|
cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
@@ -1594,6 +1628,9 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1594
1628
|
maxTimeoutInMs?: number | undefined;
|
|
1595
1629
|
randomize?: boolean | undefined;
|
|
1596
1630
|
maxAttempts?: number | undefined;
|
|
1631
|
+
outOfMemory?: {
|
|
1632
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1633
|
+
} | undefined;
|
|
1597
1634
|
} | undefined;
|
|
1598
1635
|
maxDuration?: number | undefined;
|
|
1599
1636
|
queue?: {
|
|
@@ -1619,6 +1656,9 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1619
1656
|
maxTimeoutInMs?: number | undefined;
|
|
1620
1657
|
randomize?: boolean | undefined;
|
|
1621
1658
|
maxAttempts?: number | undefined;
|
|
1659
|
+
outOfMemory?: {
|
|
1660
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1661
|
+
} | undefined;
|
|
1622
1662
|
} | undefined;
|
|
1623
1663
|
maxDuration?: number | undefined;
|
|
1624
1664
|
queue?: {
|
|
@@ -1725,18 +1765,35 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1725
1765
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1726
1766
|
*/
|
|
1727
1767
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1768
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1769
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1770
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1771
|
+
*/
|
|
1772
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1773
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1774
|
+
}, "strip", z.ZodTypeAny, {
|
|
1775
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1776
|
+
}, {
|
|
1777
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1778
|
+
}>>;
|
|
1728
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1729
1780
|
factor?: number | undefined;
|
|
1730
1781
|
minTimeoutInMs?: number | undefined;
|
|
1731
1782
|
maxTimeoutInMs?: number | undefined;
|
|
1732
1783
|
randomize?: boolean | undefined;
|
|
1733
1784
|
maxAttempts?: number | undefined;
|
|
1785
|
+
outOfMemory?: {
|
|
1786
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1787
|
+
} | undefined;
|
|
1734
1788
|
}, {
|
|
1735
1789
|
factor?: number | undefined;
|
|
1736
1790
|
minTimeoutInMs?: number | undefined;
|
|
1737
1791
|
maxTimeoutInMs?: number | undefined;
|
|
1738
1792
|
randomize?: boolean | undefined;
|
|
1739
1793
|
maxAttempts?: number | undefined;
|
|
1794
|
+
outOfMemory?: {
|
|
1795
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1796
|
+
} | undefined;
|
|
1740
1797
|
}>>;
|
|
1741
1798
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1742
1799
|
cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
@@ -1779,6 +1836,9 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1779
1836
|
maxTimeoutInMs?: number | undefined;
|
|
1780
1837
|
randomize?: boolean | undefined;
|
|
1781
1838
|
maxAttempts?: number | undefined;
|
|
1839
|
+
outOfMemory?: {
|
|
1840
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1841
|
+
} | undefined;
|
|
1782
1842
|
} | undefined;
|
|
1783
1843
|
maxDuration?: number | undefined;
|
|
1784
1844
|
queue?: {
|
|
@@ -1807,6 +1867,9 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1807
1867
|
maxTimeoutInMs?: number | undefined;
|
|
1808
1868
|
randomize?: boolean | undefined;
|
|
1809
1869
|
maxAttempts?: number | undefined;
|
|
1870
|
+
outOfMemory?: {
|
|
1871
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1872
|
+
} | undefined;
|
|
1810
1873
|
} | undefined;
|
|
1811
1874
|
maxDuration?: number | undefined;
|
|
1812
1875
|
queue?: {
|
|
@@ -1850,18 +1913,35 @@ export declare const Config: z.ZodObject<{
|
|
|
1850
1913
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1851
1914
|
*/
|
|
1852
1915
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1916
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1917
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1918
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1919
|
+
*/
|
|
1920
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1921
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1922
|
+
}, "strip", z.ZodTypeAny, {
|
|
1923
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1924
|
+
}, {
|
|
1925
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1926
|
+
}>>;
|
|
1853
1927
|
}, "strip", z.ZodTypeAny, {
|
|
1854
1928
|
factor?: number | undefined;
|
|
1855
1929
|
minTimeoutInMs?: number | undefined;
|
|
1856
1930
|
maxTimeoutInMs?: number | undefined;
|
|
1857
1931
|
randomize?: boolean | undefined;
|
|
1858
1932
|
maxAttempts?: number | undefined;
|
|
1933
|
+
outOfMemory?: {
|
|
1934
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1935
|
+
} | undefined;
|
|
1859
1936
|
}, {
|
|
1860
1937
|
factor?: number | undefined;
|
|
1861
1938
|
minTimeoutInMs?: number | undefined;
|
|
1862
1939
|
maxTimeoutInMs?: number | undefined;
|
|
1863
1940
|
randomize?: boolean | undefined;
|
|
1864
1941
|
maxAttempts?: number | undefined;
|
|
1942
|
+
outOfMemory?: {
|
|
1943
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1944
|
+
} | undefined;
|
|
1865
1945
|
}>>;
|
|
1866
1946
|
}, "strip", z.ZodTypeAny, {
|
|
1867
1947
|
enabledInDev: boolean;
|
|
@@ -1871,6 +1951,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1871
1951
|
maxTimeoutInMs?: number | undefined;
|
|
1872
1952
|
randomize?: boolean | undefined;
|
|
1873
1953
|
maxAttempts?: number | undefined;
|
|
1954
|
+
outOfMemory?: {
|
|
1955
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1956
|
+
} | undefined;
|
|
1874
1957
|
} | undefined;
|
|
1875
1958
|
}, {
|
|
1876
1959
|
default?: {
|
|
@@ -1879,6 +1962,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1879
1962
|
maxTimeoutInMs?: number | undefined;
|
|
1880
1963
|
randomize?: boolean | undefined;
|
|
1881
1964
|
maxAttempts?: number | undefined;
|
|
1965
|
+
outOfMemory?: {
|
|
1966
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1967
|
+
} | undefined;
|
|
1882
1968
|
} | undefined;
|
|
1883
1969
|
enabledInDev?: boolean | undefined;
|
|
1884
1970
|
}>>;
|
|
@@ -1903,6 +1989,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1903
1989
|
maxTimeoutInMs?: number | undefined;
|
|
1904
1990
|
randomize?: boolean | undefined;
|
|
1905
1991
|
maxAttempts?: number | undefined;
|
|
1992
|
+
outOfMemory?: {
|
|
1993
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1994
|
+
} | undefined;
|
|
1906
1995
|
} | undefined;
|
|
1907
1996
|
} | undefined;
|
|
1908
1997
|
additionalPackages?: string[] | undefined;
|
|
@@ -1925,6 +2014,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1925
2014
|
maxTimeoutInMs?: number | undefined;
|
|
1926
2015
|
randomize?: boolean | undefined;
|
|
1927
2016
|
maxAttempts?: number | undefined;
|
|
2017
|
+
outOfMemory?: {
|
|
2018
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2019
|
+
} | undefined;
|
|
1928
2020
|
} | undefined;
|
|
1929
2021
|
enabledInDev?: boolean | undefined;
|
|
1930
2022
|
} | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { MachineConfig, MachinePreset, TaskRunExecution } from "./common.js";
|
|
2
|
+
import { MachineConfig, MachinePreset, MachinePresetName, TaskRunExecution } from "./common.js";
|
|
3
3
|
/*
|
|
4
4
|
WARNING: Never import anything from ./messages here. If it's needed in both, put it here instead.
|
|
5
5
|
*/
|
|
@@ -77,6 +77,15 @@ export const RetryOptions = z.object({
|
|
|
77
77
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
78
78
|
*/
|
|
79
79
|
randomize: z.boolean().optional(),
|
|
80
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
81
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
82
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
83
|
+
*/
|
|
84
|
+
outOfMemory: z
|
|
85
|
+
.object({
|
|
86
|
+
machine: MachinePresetName.optional(),
|
|
87
|
+
})
|
|
88
|
+
.optional(),
|
|
80
89
|
});
|
|
81
90
|
export const QueueOptions = z.object({
|
|
82
91
|
/** You can define a shared queue and then pass the name in to your task.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/v3/schemas/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/v3/schemas/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEhG;;EAEE;AACF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;AAG3F,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,gBAAgB;IAC3B,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAIH,uMAAuM;AACvM,uDAAuD;AACvD,gCAAgC;AAChC,iDAAiD;AACjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EA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,CAAC,MAAM,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,oBAAoB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAI3F,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -123,17 +123,14 @@ type CommonTaskOptions<TIdentifier extends string, TPayload = void, TOutput = un
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
queue?: QueueOptions;
|
|
126
|
-
/** Configure the spec of the machine you want your task to run on.
|
|
126
|
+
/** Configure the spec of the [machine](https://trigger.dev/docs/machines) you want your task to run on.
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
129
|
*
|
|
130
130
|
* ```ts
|
|
131
131
|
* export const heavyTask = task({
|
|
132
132
|
id: "heavy-task",
|
|
133
|
-
machine:
|
|
134
|
-
cpu: 2,
|
|
135
|
-
memory: 4,
|
|
136
|
-
},
|
|
133
|
+
machine: "medium-1x",
|
|
137
134
|
run: async ({ payload, ctx }) => {
|
|
138
135
|
//...
|
|
139
136
|
},
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "3.3.
|
|
1
|
+
export const VERSION = "3.3.15";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|