@trigger.dev/core 3.3.13 → 3.3.14

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.
@@ -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;
@@ -80,6 +80,15 @@ exports.RetryOptions = zod_1.z.object({
80
80
  * This can be useful to prevent the thundering herd problem where all retries happen at the same time.
81
81
  */
82
82
  randomize: zod_1.z.boolean().optional(),
83
+ /** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
84
+ * Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
85
+ * So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
86
+ */
87
+ outOfMemory: zod_1.z
88
+ .object({
89
+ machine: common_js_1.MachinePresetName.optional(),
90
+ })
91
+ .optional(),
83
92
  });
84
93
  exports.QueueOptions = zod_1.z.object({
85
94
  /** 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,6BAAwB;AAExB,2CAA6E;AAE7E;;EAEE;AACW,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;AAG9E,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,SAAS,EAAE,4BAAgB;IAC3B,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC;IACnC,WAAW,EAAE,OAA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AO,EAAE,CAAC;IACnC,WAAW,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,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
  },
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "3.3.13";
4
+ exports.VERSION = "3.3.14";
5
5
  //# sourceMappingURL=version.js.map
@@ -326,7 +326,7 @@ const isSafari = () => {
326
326
  *
327
327
  */
328
328
  if (isSafari()) {
329
- // @ts-expect-error
329
+ // @ts-ignore-error
330
330
  ReadableStream.prototype.values ??= function ({ preventCancel = false } = {}) {
331
331
  const reader = this.getReader();
332
332
  return {
@@ -359,7 +359,7 @@ if (isSafari()) {
359
359
  },
360
360
  };
361
361
  };
362
- // @ts-expect-error
362
+ // @ts-ignore-error
363
363
  ReadableStream.prototype[Symbol.asyncIterator] ??= ReadableStream.prototype.values;
364
364
  }
365
365
  //# sourceMappingURL=runStream.js.map