-
Notifications
You must be signed in to change notification settings - Fork 196
/
schedule_client.go
616 lines (506 loc) · 23.7 KB
/
schedule_client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
// The MIT License
//
// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package internal
import (
"context"
"time"
commonpb "go.temporal.io/api/common/v1"
enumspb "go.temporal.io/api/enums/v1"
)
type (
// ScheduleRange represents a set of integer values, used to match fields of a calendar
// time in StructuredCalendarSpec. If end < start, then end is interpreted as
// equal to start. This means you can use a Range with start set to a value, and
// end and step unset (defaulting to 0) to represent a single value.
ScheduleRange struct {
// Start of the range (inclusive)
Start int
// End of the range (inclusive)
// Optional: defaulted to Start
End int
// Step to be take between each value
// Optional: defaulted to 1
Step int
}
// ScheduleCalendarSpec is an event specification relative to the calendar, similar to a traditional cron specification.
// A timestamp matches if at least one range of each field matches the
// corresponding fields of the timestamp, except for year: if year is missing,
// that means all years match. For all fields besides year, at least one Range must be present to match anything.
ScheduleCalendarSpec struct {
// Second range to match (0-59).
//
// default: matches 0
Second []ScheduleRange
// Minute range to match (0-59).
//
// default: matches 0
Minute []ScheduleRange
// Hour range to match (0-23).
//
// default: matches 0
Hour []ScheduleRange
// DayOfMonth range to match (1-31)
//
// default: matches all days
DayOfMonth []ScheduleRange
// Month range to match (1-12)
//
// default: matches all months
Month []ScheduleRange
// Year range to match.
//
// default: empty that matches all years
Year []ScheduleRange
// DayOfWeek range to match (0-6; 0 is Sunday)
//
// default: matches all days of the week
DayOfWeek []ScheduleRange
// Comment - Description of the intention of this schedule.
Comment string
}
// ScheduleBackfill desribes a time periods and policy and takes Actions as if that time passed by right now, all at once.
ScheduleBackfill struct {
// Start - start of the range to evaluate schedule in.
Start time.Time
// End - end of the range to evaluate schedule in.
End time.Time
// Overlap - Override the Overlap Policy for this request.
Overlap enumspb.ScheduleOverlapPolicy
}
// ScheduleIntervalSpec - matches times that can be expressed as:
//
// Epoch + (n * every) + offset
//
// where n is all integers ≥ 0.
//
// For example, an `every` of 1 hour with `offset` of zero would match every hour, on the hour. The same `every` but an `offset`
// of 19 minutes would match every `xx:19:00`. An `every` of 28 days with `offset` zero would match `2022-02-17T00:00:00Z`
// (among other times). The same `every` with `offset` of 3 days, 5 hours, and 23 minutes would match `2022-02-20T05:23:00Z`
// instead.
ScheduleIntervalSpec struct {
// Every - describes the period to repeat the interval.
Every time.Duration
// Offset - is a fixed offset added to the intervals period.
// Optional: Defaulted to 0
Offset time.Duration
}
// ScheduleSpec is a complete description of a set of absolute times (possibly infinite) that a action should occur at.
// The times are the union of Calendars, Intervals, and CronExpressions, minus the Skip times. These times
// never change, except that the definition of a time zone can change over time (most commonly, when daylight saving
// time policy changes for an area). To create a totally self-contained ScheduleSpec, use UTC.
ScheduleSpec struct {
// Calendars - Calendar-based specifications of times
Calendars []ScheduleCalendarSpec
// Intervals - Interval-based specifications of times.
Intervals []ScheduleIntervalSpec
// CronExpressions - CronExpressions-based specifications of times. CronExpressions is provided for easy migration from legacy Cron Workflows. For new
// use cases, we recommend using ScheduleSpec.Calendars or ScheduleSpec.Intervals for readability and maintainability. Once a schedule is created all
// expressions in CronExpressions will be translated to ScheduleSpec.Calendars on the server.
//
// For example, `0 12 * * MON-WED,FRI` is every M/Tu/W/F at noon, and is equivalent to this ScheduleCalendarSpec:
//
// client.ScheduleCalendarSpec{
// Second: []ScheduleRange{{}},
// Minute: []ScheduleRanges{{}},
// Hour: []ScheduleRange{{
// Start: 12,
// }},
// DayOfMonth: []ScheduleRange{
// {
// Start: 1,
// End: 31,
// },
// },
// Month: []ScheduleRange{
// {
// Start: 1,
// End: 12,
// },
// },
// DayOfWeek: []ScheduleRange{
// {
// Start: 1,
// End: 3,
// },
// {
// Start: 5,
// },
// },
// }
//
//
// The string can have 5, 6, or 7 fields, separated by spaces, and they are interpreted in the
// same way as a ScheduleCalendarSpec:
// - 5 fields: Minute, Hour, DayOfMonth, Month, DayOfWeek
// - 6 fields: Minute, Hour, DayOfMonth, Month, DayOfWeek, Year
// - 7 fields: Second, Minute, Hour, DayOfMonth, Month, DayOfWeek, Year
//
// Notes:
// - If Year is not given, it defaults to *.
// - If Second is not given, it defaults to 0.
// - Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
// accepted instead of the 5-7 time fields.
// - @every <interval>[/<phase>] is accepted and gets compiled into an
// IntervalSpec instead. <interval> and <phase> should be a decimal integer
// with a unit suffix s, m, h, or d.
// - Optionally, the string can be preceded by CRON_TZ=<time zone name> or
// TZ=<time zone name>, which will get copied to ScheduleSpec.TimeZoneName. (In which case the ScheduleSpec.TimeZone field should be left empty.)
// - Optionally, "#" followed by a comment can appear at the end of the string.
// - Note that the special case that some cron implementations have for
// treating DayOfMonth and DayOfWeek as "or" instead of "and" when both
// are set is not implemented.
CronExpressions []string
// Skip - Any matching times will be skipped.
//
// All fields of the ScheduleCalendarSpec—including seconds—must match a time for the time to be skipped.
Skip []ScheduleCalendarSpec
// StartAt - Any times before `startAt` will be skipped. Together, `startAt` and `endAt` make an inclusive interval.
// Optional: Defaulted to the beginning of time
StartAt time.Time
// EndAt - Any times after `endAt` will be skipped.
// Optional: Defaulted to the end of time
EndAt time.Time
// Jitter - All times will be incremented by a random value from 0 to this amount of jitter, capped
// by the time until the next schedule.
// Optional: Defaulted to 0
Jitter time.Duration
// TimeZoneName - IANA time zone name, for example `US/Pacific`.
//
// The definition will be loaded by Temporal Server from the environment it runs in.
//
// Calendar spec matching is based on literal matching of the clock time
// with no special handling of DST: if you write a calendar spec that fires
// at 2:30am and specify a time zone that follows DST, that action will not
// be triggered on the day that has no 2:30am. Similarly, an action that
// fires at 1:30am will be triggered twice on the day that has two 1:30s.
//
// Note: No actions are taken on leap-seconds (e.g. 23:59:60 UTC).
// Optional: Defaulted to UTC
TimeZoneName string
}
// ScheduleAction represents an action a schedule can take.
ScheduleAction interface {
isScheduleAction()
}
// ScheduleWorkflowAction implements ScheduleAction to launch a workflow.
ScheduleWorkflowAction struct {
// ID - The business identifier of the workflow execution.
// The workflow ID of the started workflow may not match this exactly,
// it may have a timestamp appended for uniqueness.
// Optional: defaulted to a uuid.
ID string
// Workflow - What workflow to run.
// Workflow can either be the function or workflow type name as a string.
// On ScheduleHandle.Describe() or ScheduleHandle.Update() it will be the workflow type name.
Workflow interface{}
// Args - Arguments to pass to the workflow.
// On ScheduleHandle.Describe() or ScheduleHandle.Update() Args will be returned as *commonpb.Payload.
Args []interface{}
// TaskQueue - The workflow tasks of the workflow are scheduled on the queue with this name.
// This is also the name of the activity task queue on which activities are scheduled.
TaskQueue string
// WorkflowExecutionTimeout - The timeout for duration of workflow execution.
WorkflowExecutionTimeout time.Duration
// WorkflowRunTimeout - The timeout for duration of a single workflow run.
WorkflowRunTimeout time.Duration
// WorkflowTaskTimeout - The timeout for processing workflow task from the time the worker
// pulled this task.
WorkflowTaskTimeout time.Duration
// RetryPolicy - Retry policy for workflow. If a retry policy is specified, in case of workflow failure
// server will start new workflow execution if needed based on the retry policy.
RetryPolicy *RetryPolicy
// Memo - Optional non-indexed info that will be shown in list workflow.
// On ScheduleHandle.Describe() or ScheduleHandle.Update() Memo will be returned as *commonpb.Payload.
Memo map[string]interface{}
// SearchAttributes - Optional indexed info that can be used in query of List/Scan/Count workflow APIs (only
// supported when Temporal server is using advanced visiblity). The key and value type must be registered on Temporal server side.
// Use GetSearchAttributes API to get valid key and corresponding value type.
// On ScheduleHandle.Describe() or ScheduleHandle.Update() SearchAttributes will be returned as *commonpb.Payload.
SearchAttributes map[string]interface{}
}
// ScheduleOptions configure the parameters for creating a schedule.
ScheduleOptions struct {
// ID - The business identifier of the schedule.
ID string
// Schedule - Describes when Actions should be taken.
Spec ScheduleSpec
// Action - Which Action to take.
Action ScheduleAction
// Overlap - Controls what happens when an Action would be started by a Schedule at the same time that an older Action is still
// running. This can be changed after a Schedule has taken some Actions, and some changes might produce
// unintuitive results. In general, the later policy overrides the earlier policy.
//
// Optional: defaulted to SCHEDULE_OVERLAP_POLICY_SKIP
Overlap enumspb.ScheduleOverlapPolicy
// CatchupWindow - The Temporal Server might be down or unavailable at the time when a Schedule should take an Action.
// When the Server comes back up, CatchupWindow controls which missed Actions should be taken at that point. The default is one
// minute, which means that the Schedule attempts to take any Actions that wouldn't be more than one minute late. It
// takes those Actions according to the Overlap. An outage that lasts longer than the Catchup
// Window could lead to missed Actions.
// Optional: defaulted to 1 minute
CatchupWindow time.Duration
// PauseOnFailure - When an Action times out or reaches the end of its Retry Policy the Schedule will pause.
//
// With SCHEDULE_OVERLAP_POLICY_ALLOW_ALL, this pause might not apply to the next Action, because the next Action
// might have already started previous to the failed one finishing. Pausing applies only to Actions that are scheduled
// to start after the failed one finishes.
// Optional: defaulted to false
PauseOnFailure bool
// Note - Informative human-readable message with contextual notes, e.g. the reason
// a Schedule is paused. The system may overwrite this message on certain
// conditions, e.g. when pause-on-failure happens.
Note string
// Paused - Start in paused state.
// Optional: defaulted to false
Paused bool
// RemainingActions - limit the number of Actions to take.
//
// This number is decremented after each Action is taken, and Actions are not
// taken when the number is `0` (unless ScheduleHandle.Trigger is called).
//
// Optional: defaulted to zero
RemainingActions int
// TriggerImmediately - Trigger one Action immediately on creating the schedule.
// Optional: defaulted to false
TriggerImmediately bool
// ScheduleBackfill - Runs though the specified time periods and takes Actions as if that time passed by right now, all at once. The
// overlap policy can be overridden for the scope of the ScheduleBackfill.
ScheduleBackfill []ScheduleBackfill
// Memo - Optional non-indexed info that will be shown in list schedules.
Memo map[string]interface{}
// SearchAttributes - Optional indexed info that can be used in query of List schedules APIs (only
// supported when Temporal server is using advanced visibility). The key and value type must be registered on Temporal server side.
// Use GetSearchAttributes API to get valid key and corresponding value type.
SearchAttributes map[string]interface{}
}
// ScheduleWorkflowExecution contains details on a workflows execution stared by a schedule.
ScheduleWorkflowExecution struct {
// WorkflowID - The ID of the workflow execution
WorkflowID string
// FirstExecutionRunID - The Run Id of the original execution that was started by the Schedule. If the Workflow retried, did
// Continue-As-New, or was Reset, the following runs would have different Run Ids.
FirstExecutionRunID string
}
// ScheduleInfo describes other information about a schedule.
ScheduleInfo struct {
// NumActions - Number of actions taken by this schedule.
NumActions int
// NumActionsMissedCatchupWindow - Number of times a scheduled Action was skipped due to missing the catchup window.
NumActionsMissedCatchupWindow int
// NumActionsSkippedOverlap - Number of Actions skipped due to overlap.
NumActionsSkippedOverlap int
// RunningWorkflows - Currently-running workflows started by this schedule. (There might be
// more than one if the overlap policy allows overlaps.)
RunningWorkflows []ScheduleWorkflowExecution
// RecentActions- Most recent 10 Actions started (including manual triggers).
//
// Sorted from older start time to newer.
RecentActions []ScheduleActionResult
// NextActionTimes - Next 10 scheduled Action times.
NextActionTimes []time.Time
// CreatedAt - When the schedule was created
CreatedAt time.Time
// LastUpdateAt - When a schedule was last updated
LastUpdateAt time.Time
}
// ScheduleDescription describes the current Schedule details from ScheduleHandle.Describe.
ScheduleDescription struct {
// Schedule - Describes the modifiable fields of a schedule.
Schedule Schedule
// Info - Extra information about the schedule.
Info ScheduleInfo
// Memo - Non-indexed user supplied information.
Memo *commonpb.Memo
// SearchAttributes - Indexed info that can be used in query of List schedules APIs (only
// supported when Temporal server is using advanced visibility). The key and value type must be registered on Temporal server side.
// Use GetSearchAttributes API to get valid key and corresponding value type.
SearchAttributes *commonpb.SearchAttributes
}
// SchedulePolicies describes the current polcies of a schedule.
SchedulePolicies struct {
// Overlap - Controls what happens when an Action would be started by a Schedule at the same time that an older Action is still
// running.
Overlap enumspb.ScheduleOverlapPolicy
// CatchupWindow - The Temporal Server might be down or unavailable at the time when a Schedule should take an Action. When the Server
// comes back up, CatchupWindow controls which missed Actions should be taken at that point.
CatchupWindow time.Duration
// PauseOnFailure - When an Action times out or reaches the end of its Retry Policy.
PauseOnFailure bool
}
// ScheduleState describes the current state of a schedule.
ScheduleState struct {
// Note - Informative human-readable message with contextual notes, e.g. the reason
// a Schedule is paused. The system may overwrite this message on certain
// conditions, e.g. when pause-on-failure happens.
Note string
// Paused - True if the schedule is paused.
Paused bool
// LimitedActions - While true RemainingActions will be decremented for each action taken.
// Skipped actions (due to overlap policy) do not count against remaining actions.
LimitedActions bool
// RemainingActions - The Actions remaining in this Schedule. Once this number hits 0, no further Actions are taken.
// manual actions through backfill or ScheduleHandle.Trigger still run.
RemainingActions int
}
// Schedule describes a created schedule.
Schedule struct {
// Action - Which Action to take
Action ScheduleAction
// Schedule - Describes when Actions should be taken.
Spec *ScheduleSpec
// SchedulePolicies - this schedules policies
Policy *SchedulePolicies
// State - this schedules state
State *ScheduleState
}
// ScheduleUpdate describes the desired new schedule from ScheduleHandle.Update.
ScheduleUpdate struct {
// Schedule - New schedule to replace the existing schedule with
Schedule *Schedule
}
// ScheduleUpdateInput describes the current state of the schedule to be updated.
ScheduleUpdateInput struct {
// Description - current description of the schedule
Description ScheduleDescription
}
// ScheduleUpdateOptions configure the parameters for updating a schedule.
ScheduleUpdateOptions struct {
// DoUpdate - Takes a description of the schedule and returns the new desired schedule.
// If update returns ErrSkipScheduleUpdate response and no update will occur.
// Any other error will be passed through.
DoUpdate func(ScheduleUpdateInput) (*ScheduleUpdate, error)
}
// ScheduleTriggerOptions configure the parameters for triggering a schedule.
ScheduleTriggerOptions struct {
// Overlap - If specified, policy to override the schedules default overlap policy.
Overlap enumspb.ScheduleOverlapPolicy
}
// SchedulePauseOptions configure the parameters for pausing a schedule.
SchedulePauseOptions struct {
// Note - Informative human-readable message with contextual notes.
// Optional: defaulted to 'Paused via Go SDK'
Note string
}
// ScheduleUnpauseOptions configure the parameters for unpausing a schedule.
ScheduleUnpauseOptions struct {
// Note - Informative human-readable message with contextual notes.
// Optional: defaulted to 'Unpaused via Go SDK'
Note string
}
// ScheduleBackfillOptions configure the parameters for backfilling a schedule.
ScheduleBackfillOptions struct {
// Backfill - Time periods to backfill the schedule.
Backfill []ScheduleBackfill
}
// ScheduleHandle represents a created schedule.
ScheduleHandle interface {
// GetID returns the schedule ID asssociated with this handle.
GetID() string
// Delete the Schedule
Delete(ctx context.Context) error
// Backfill the schedule by going though the specified time periods and taking Actions as if that time passed by right now, all at once.
Backfill(ctx context.Context, options ScheduleBackfillOptions) error
// Update the Schedule.
//
// NOTE: If two Update calls are made in parallel to the same Schedule there is the potential
// for a race condition.
Update(ctx context.Context, options ScheduleUpdateOptions) error
// Describe fetches the Schedule's description from the Server
Describe(ctx context.Context) (*ScheduleDescription, error)
// Trigger an Action to be taken immediately. Will override the schedules default policy
// with the one specified here. If overlap is SCHEDULE_OVERLAP_POLICY_UNSPECIFIED the schedule
// policy will be used.
Trigger(ctx context.Context, options ScheduleTriggerOptions) error
// Pause the Schedule will also overwrite the Schedules current note with the new note.
Pause(ctx context.Context, options SchedulePauseOptions) error
// Unpause the Schedule will also overwrite the Schedules current note with the new note.
Unpause(ctx context.Context, options ScheduleUnpauseOptions) error
}
// ScheduleActionResult describes when a schedule action took place
ScheduleActionResult struct {
// ScheduleTime - Time that the Action was scheduled for, including jitter.
ScheduleTime time.Time
// ActualTime - Time that the Action was actually taken.
ActualTime time.Time
// StartWorkflowResult - If action was ScheduleWorkflowAction, returns the
// ID of the workflow.
StartWorkflowResult *ScheduleWorkflowExecution
}
// ScheduleListEntry
ScheduleListEntry struct {
// ID - The business identifier of the schedule.
ID string
// Spec - Describes when Actions should be taken.
Spec *ScheduleSpec
// Note - Informative human-readable message with contextual notes, e.g. the reason
// a Schedule is paused. The system may overwrite this message on certain
// conditions, e.g. when pause-on-failure happens.
Note string
// Paused - True if the schedule is paused.
Paused bool
// WorkflowType - If the schedule action is a Wokrflow then
// describes what workflow is run.
WorkflowType WorkflowType
// RecentActions- Most recent 5 Actions started (including manual triggers).
//
// Sorted from older start time to newer.
RecentActions []ScheduleActionResult
// NextActionTimes - Next 5 scheduled Action times.
NextActionTimes []time.Time
// Memo - Non-indexed user supplied information.
Memo *commonpb.Memo
// SearchAttributes - Indexed info that can be used in query of List schedules APIs (only
// supported when Temporal server is using advanced visibility). The key and value type must be registered on Temporal server side.
// Use GetSearchAttributes API to get valid key and corresponding value type.
SearchAttributes *commonpb.SearchAttributes
}
// ScheduleListOptions are the parameters for configuring listing schedules
ScheduleListOptions struct {
// PageSize - How many results to fetch from the Server at a time.
// Optional: defaulted to 1000
PageSize int
}
// ScheduleListIterator represents the interface for
// schedule iterator
ScheduleListIterator interface {
// HasNext return whether this iterator has next value
HasNext() bool
// Next returns the next schedule and error
Next() (*ScheduleListEntry, error)
}
// Client for creating Schedules and creating Schedule handles
ScheduleClient interface {
// Create a new Schedule.
Create(ctx context.Context, options ScheduleOptions) (ScheduleHandle, error)
// List returns an interator to list all schedules
//
// Note: When using advanced visibility List is eventually consistent.
List(ctx context.Context, options ScheduleListOptions) (ScheduleListIterator, error)
// GetHandle returns a handle to a Schedule
//
// This method does not validate scheduleID. If there is no Schedule with the given scheduleID, handle
// methods like ScheduleHandle.Describe() will return an error.
GetHandle(ctx context.Context, scheduleID string) ScheduleHandle
}
)
func (*ScheduleWorkflowAction) isScheduleAction() {
}