@cadenza.io/service 2.17.45 → 2.17.46

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
@@ -9230,6 +9230,24 @@ var GraphSyncController = class _GraphSyncController {
9230
9230
  if (registerTaskTask) {
9231
9231
  this.splitTasksForRegistration.then(registerTaskTask);
9232
9232
  }
9233
+ CadenzaService.createMetaTask(
9234
+ "Prepare created task for immediate sync",
9235
+ (ctx) => {
9236
+ const task = ctx.taskInstance ?? (ctx.data?.name ? CadenzaService.get(String(ctx.data.name)) : void 0);
9237
+ if (!task || task.hidden || !task.register || task.registered) {
9238
+ return false;
9239
+ }
9240
+ return {
9241
+ __syncing: true,
9242
+ tasks: [task]
9243
+ };
9244
+ },
9245
+ "Schedules newly created tasks into the graph sync registration flow without waiting for the next periodic tick.",
9246
+ {
9247
+ register: false,
9248
+ isHidden: true
9249
+ }
9250
+ ).doOn("meta.task.created").then(this.splitTasksForRegistration);
9233
9251
  CadenzaService.createUniqueMetaTask(
9234
9252
  "Gather task registration",
9235
9253
  () => {