nestjs-temporal-core
    Preparing search index...

    Class TemporalScheduleService

    Service for managing Temporal schedules including creating, updating, and monitoring scheduled workflows

    Implements

    • OnModuleInit
    • OnModuleDestroy
    Index
    • Trigger an immediate action for a schedule, outside its normal specification.

      Parameters

      • scheduleId: string
      • OptionaloverlapPolicy: ScheduleOverlapPolicy

      Returns Promise<ScheduleOperationResult>

      await scheduleService.triggerSchedule('daily-report', 'ALLOW_ALL');
      
    • Update a schedule's definition. updateFn receives the current description and must return the new desired schedule options — mirrors the SDK's describe-then-transform ScheduleHandle.update() pattern.

      Parameters

      Returns Promise<ScheduleOperationResult>

      await scheduleService.updateSchedule('daily-report', (previous) => ({
      ...previous,
      spec: { ...previous.spec, cronExpressions: ['0 9 * * *'] },
      }));