nestjs-temporal-core
    Preparing search index...

    Class TemporalService

    Main unified service for Temporal operations Provides a single interface to access all Temporal functionality

    Implements

    • OnModuleInit
    • OnModuleDestroy
    Index

    Constructors

    Accessors

    Methods

    • Get comprehensive health status

      Returns {
          isInitialized: boolean;
          namespace: string;
          services: {
              activity: ServiceHealth;
              client: ServiceHealth;
              discovery: ServiceHealth;
              schedule: ServiceHealth;
              worker: ServiceHealth;
          };
          status: "healthy"
          | "unhealthy"
          | "degraded";
          summary: {
              clientConnected: boolean;
              totalActivities: number;
              totalSchedules: number;
              workerRunning: boolean;
          };
      }

    • Get worker health status

      Returns Promise<
          {
              details?: WorkerStatus;
              status: "healthy"
              | "unhealthy"
              | "degraded"
              | "not_available";
          },
      >

    • Get workflow handle

      Type Parameters

      • T = unknown

      Parameters

      • workflowId: string
      • OptionalrunId: string

      Returns Promise<T>

    • Check if a method is an activity method

      Parameters

      • target: object
      • methodName: string

      Returns boolean

    • Start a specific worker by task queue (for multiple workers setup)

      Parameters

      • taskQueue: string

      Returns Promise<void>

    • Stop a specific worker by task queue (for multiple workers setup)

      Parameters

      • taskQueue: string

      Returns Promise<void>