@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.
@@ -6815,6 +6815,24 @@ var GraphSyncController = class _GraphSyncController {
6815
6815
  if (registerTaskTask) {
6816
6816
  this.splitTasksForRegistration.then(registerTaskTask);
6817
6817
  }
6818
+ CadenzaService.createMetaTask(
6819
+ "Prepare created task for immediate sync",
6820
+ (ctx) => {
6821
+ const task = ctx.taskInstance ?? (ctx.data?.name ? CadenzaService.get(String(ctx.data.name)) : void 0);
6822
+ if (!task || task.hidden || !task.register || task.registered) {
6823
+ return false;
6824
+ }
6825
+ return {
6826
+ __syncing: true,
6827
+ tasks: [task]
6828
+ };
6829
+ },
6830
+ "Schedules newly created tasks into the graph sync registration flow without waiting for the next periodic tick.",
6831
+ {
6832
+ register: false,
6833
+ isHidden: true
6834
+ }
6835
+ ).doOn("meta.task.created").then(this.splitTasksForRegistration);
6818
6836
  CadenzaService.createUniqueMetaTask(
6819
6837
  "Gather task registration",
6820
6838
  () => {