Class: ScheduleClient
client.ScheduleClient
Client for starting Workflow executions and creating Workflow handles
Hierarchy
-
BaseClient↳
ScheduleClient
Constructors
constructor
• new ScheduleClient(options?): ScheduleClient
Parameters
| Name | Type |
|---|---|
options? | ScheduleClientOptions |
Returns
Overrides
BaseClient.constructor
Properties
connection
• Readonly connection: ConnectionLike
The underlying connection or NativeConnection | native connection used by this client.
Clients are cheap to create, but connections are expensive. Where it makes sense,
a single connection may and should be reused by multiple Clients.
Inherited from
BaseClient.connection
options
• Readonly options: LoadedScheduleClientOptions
Accessors
workflowService
• get workflowService(): WorkflowService
Raw gRPC access to the Temporal service. Schedule-related methods are included in WorkflowService.
NOTE: The namespace provided in options is not automatically set on requests made to the service.
Returns
Methods
create
▸ create<W>(options): Promise<ScheduleHandle>
Create a new Schedule.
Type parameters
| Name | Type |
|---|---|
W | extends Workflow = Workflow |
Parameters
| Name | Type |
|---|---|
options | ScheduleOptions<ScheduleOptionsStartWorkflowAction<W>> |
Returns
Promise<ScheduleHandle>
a ScheduleHandle to the created Schedule
Throws
ScheduleAlreadyRunning if there's a running (not deleted) Schedule with the given id