@trigger.dev/sdk 2.3.12 → 2.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/index.mjs CHANGED
@@ -258,7 +258,7 @@ __name(_Job, "Job");
258
258
  var Job = _Job;
259
259
 
260
260
  // package.json
261
- var version = "2.3.12";
261
+ var version = "2.3.15";
262
262
 
263
263
  // src/errors.ts
264
264
  var _ResumeWithTaskError = class _ResumeWithTaskError {
@@ -1555,6 +1555,7 @@ var _IO = class _IO {
1555
1555
  await this._apiClient.failTask(this._id, task.id, {
1556
1556
  error: error.cause.output
1557
1557
  });
1558
+ throw error;
1558
1559
  }
1559
1560
  const parsedError = ErrorWithStackSchema.safeParse(error);
1560
1561
  if (options?.retry && !skipRetrying) {
@@ -2818,7 +2819,7 @@ var _CronTrigger = class _CronTrigger {
2818
2819
  get event() {
2819
2820
  const humanReadable = cronstrue.toString(this.options.cron, {
2820
2821
  throwExceptionOnParseError: false
2821
- });
2822
+ }).concat(" (UTC)");
2822
2823
  return {
2823
2824
  name: "trigger.scheduled",
2824
2825
  title: "Cron Schedule",
@@ -3406,7 +3407,7 @@ var _TriggerClient = class _TriggerClient {
3406
3407
  }
3407
3408
  defineJob(options) {
3408
3409
  const existingRegisteredJob = __privateGet(this, _registeredJobs)[options.id];
3409
- if (existingRegisteredJob) {
3410
+ if (existingRegisteredJob && options.__internal !== true) {
3410
3411
  console.warn(`[@trigger.dev/sdk] Warning: The Job "${existingRegisteredJob.id}" you're attempting to define has already been defined. Please assign a different ID to the job.`);
3411
3412
  }
3412
3413
  const job = new Job(options);