Skip to content

Commit bff58e3

Browse files
committed
change comments
1 parent 209443b commit bff58e3

4 files changed

Lines changed: 65 additions & 24 deletions

File tree

openapi/openapiv2.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18613,6 +18613,10 @@
1861318613
},
1861418614
"state": {
1861518615
"$ref": "#/definitions/v1ScheduleState"
18616+
},
18617+
"timeSkippingConfig": {
18618+
"$ref": "#/definitions/v1TimeSkippingConfig",
18619+
"description": "Time-skipping configuration for workflows started by this schedule.\nIf not set, time skipping is disabled for triggered workflow executions."
1861618620
}
1861718621
}
1861818622
},
@@ -18814,6 +18818,10 @@
1881418818
},
1881518819
"unpause": {
1881618820
"type": "string"
18821+
},
18822+
"timeSkippingConfig": {
18823+
"$ref": "#/definitions/v1TimeSkippingConfig",
18824+
"description": "If set, updates the time-skipping configuration for this schedule."
1881718825
}
1881818826
}
1881918827
},
@@ -19676,14 +19684,18 @@
1967619684
},
1967719685
"fastForward": {
1967819686
"type": "string",
19679-
"description": "Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.\nWhen the fast-forward completes, time skipping is disabled by the call that initiated the fast-forward, and this\naction is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by\nsetting `enabled` to true via UpdateWorkflowExecutionOptions.\nThe current workflow execution is a chain of runs (retries, cron, continue-as-new);\nchild workflows are separate executions, so this fast_forward won't affect them.\n\nFor a given workflow execution, only one active fast-forward is allowed at a time.\nIf a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous\none completes, the new one will override the previous one.\nIf the fast-forward duration exceeds the remaining execution timeout, time will only\nbe fast-forwarded up to the end of the execution."
19687+
"description": "Optionally fast-forward the current execution by this duration ahead of current execution time.\nFor a given execution, only one active fast-forward is allowed at a time.\nIf a new fast-forward is set via a update call before the previous\none completes, the new one will override the previous one.\nIf the fast-forward duration exceeds the remaining execution timeout, time will only\nbe fast-forwarded up to the end of the execution.\n\nIf the executions are workflows:\nWhen the fast-forward completes, time skipping is disabled by the call that initiated\nthe fast-forward, and this action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent.\nIt can be re-enabled by setting `enabled` to true via UpdateWorkflowExecutionOptions.\nThe current workflow execution is a chain of runs (retries, cron, continue-as-new);\nchild workflows are separate executions, so this fast_forward won't affect them."
1968019688
},
1968119689
"disableChildPropagation": {
1968219690
"type": "boolean",
1968319691
"description": "By default, child workflows inherit the \"enabled\" flag when they are started.\nThis flag disables that inheritance."
19692+
},
19693+
"disableScheduledActionPropagation": {
19694+
"type": "boolean",
19695+
"description": "By default, executions inherit the \"enabled\" flag when they are started by a scheduler.\nThis flag disables that inheritance."
1968419696
}
1968519697
},
19686-
"description": "The configuration for time skipping of a workflow execution (a chain of runs including retries, cron, continue-as-new).\nWhen time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.\nIn-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,\nand possibly other features added in the future.\nUser timers are not classified as in-flight work and will be skipped over; the virtual clock may also skip to the\ntime point of the registered fast forward when there is no in-flight work.\nWhen time is skipped, a WorkflowExecutionTimeSkippingTransitionedEvent will be\nadded to the workflow history to capture the state changes.\n\nFor child workflows, by default, if the parent execution is skipping time, the child execution will also skip time,\nbut a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the\n\"enabled\" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the\nparent execution as its start time."
19698+
"description": "The configuration for time skipping of an execution.\n\nFor a workflow execution (a chain of runs including retries, cron, continue-as-new):\nWhen time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.\nIn-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,\nand possibly other features added in the future.\nUser timers are not classified as in-flight work and will be skipped over; the virtual clock may also skip to the\ntime point of the registered fast forward when there is no in-flight work.\nWhen time is skipped, a WorkflowExecutionTimeSkippingTransitionedEvent will be\nadded to the workflow history to capture the state changes.\n\nFor child workflows, by default, if the parent execution is skipping time, the child execution will also skip time,\nbut a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the\n\"enabled\" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the\nparent execution as its start time.\n\nFor a scheduler execution: {{ TBD }}"
1968719699
},
1968819700
"v1TimeSkippingStatePropagation": {
1968919701
"type": "object",

openapi/openapiv3.yaml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15591,6 +15591,12 @@ components:
1559115591
$ref: '#/components/schemas/SchedulePolicies'
1559215592
state:
1559315593
$ref: '#/components/schemas/ScheduleState'
15594+
timeSkippingConfig:
15595+
allOf:
15596+
- $ref: '#/components/schemas/TimeSkippingConfig'
15597+
description: |-
15598+
Time-skipping configuration for workflows started by this schedule.
15599+
If not set, time skipping is disabled for triggered workflow executions.
1559415600
ScheduleAction:
1559515601
type: object
1559615602
properties:
@@ -15760,6 +15766,10 @@ components:
1576015766
notes field to the value of the string.
1576115767
unpause:
1576215768
type: string
15769+
timeSkippingConfig:
15770+
allOf:
15771+
- $ref: '#/components/schemas/TimeSkippingConfig'
15772+
description: If set, updates the time-skipping configuration for this schedule.
1576315773
SchedulePolicies:
1576415774
type: object
1576515775
properties:
@@ -17433,25 +17443,33 @@ components:
1743317443
pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
1743417444
type: string
1743517445
description: |-
17436-
Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.
17437-
When the fast-forward completes, time skipping is disabled by the call that initiated the fast-forward, and this
17438-
action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by
17439-
setting `enabled` to true via UpdateWorkflowExecutionOptions.
17440-
The current workflow execution is a chain of runs (retries, cron, continue-as-new);
17441-
child workflows are separate executions, so this fast_forward won't affect them.
17442-
17443-
For a given workflow execution, only one active fast-forward is allowed at a time.
17444-
If a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous
17446+
Optionally fast-forward the current execution by this duration ahead of current execution time.
17447+
For a given execution, only one active fast-forward is allowed at a time.
17448+
If a new fast-forward is set via a update call before the previous
1744517449
one completes, the new one will override the previous one.
1744617450
If the fast-forward duration exceeds the remaining execution timeout, time will only
1744717451
be fast-forwarded up to the end of the execution.
17452+
17453+
If the executions are workflows:
17454+
When the fast-forward completes, time skipping is disabled by the call that initiated
17455+
the fast-forward, and this action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent.
17456+
It can be re-enabled by setting `enabled` to true via UpdateWorkflowExecutionOptions.
17457+
The current workflow execution is a chain of runs (retries, cron, continue-as-new);
17458+
child workflows are separate executions, so this fast_forward won't affect them.
1744817459
disableChildPropagation:
1744917460
type: boolean
1745017461
description: |-
1745117462
By default, child workflows inherit the "enabled" flag when they are started.
1745217463
This flag disables that inheritance.
17464+
disableScheduledActionPropagation:
17465+
type: boolean
17466+
description: |-
17467+
By default, executions inherit the "enabled" flag when they are started by a scheduler.
17468+
This flag disables that inheritance.
1745317469
description: |-
17454-
The configuration for time skipping of a workflow execution (a chain of runs including retries, cron, continue-as-new).
17470+
The configuration for time skipping of an execution.
17471+
17472+
For a workflow execution (a chain of runs including retries, cron, continue-as-new):
1745517473
When time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.
1745617474
In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,
1745717475
and possibly other features added in the future.
@@ -17464,6 +17482,8 @@ components:
1746417482
but a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the
1746517483
"enabled" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the
1746617484
parent execution as its start time.
17485+
17486+
For a scheduler execution: {{ TBD }}
1746717487
TimeSkippingStatePropagation:
1746817488
type: object
1746917489
properties:

temporal/api/common/v1/message.proto

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ message OnConflictOptions {
395395
bool attach_links = 3;
396396
}
397397

398-
// The configuration for time skipping of a workflow execution (a chain of runs including retries, cron, continue-as-new).
398+
// The configuration for time skipping of an execution.
399+
//
400+
// For a workflow execution (a chain of runs including retries, cron, continue-as-new):
399401
// When time skipping is enabled, virtual time advances automatically whenever there is no in-flight work.
400402
// In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,
401403
// and possibly other features added in the future.
@@ -408,27 +410,34 @@ message OnConflictOptions {
408410
// but a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the
409411
// "enabled" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the
410412
// parent execution as its start time.
413+
//
414+
// For a scheduler execution: {{ TBD }}
411415
message TimeSkippingConfig {
412416
// Enables or disables time skipping for this workflow execution.
413417
bool enabled = 1;
414418

415-
// Optionally fast-forward the current workflow execution by this duration ahead of current workflow execution time.
416-
// When the fast-forward completes, time skipping is disabled by the call that initiated the fast-forward, and this
417-
// action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent. It can be re-enabled by
418-
// setting `enabled` to true via UpdateWorkflowExecutionOptions.
419-
// The current workflow execution is a chain of runs (retries, cron, continue-as-new);
420-
// child workflows are separate executions, so this fast_forward won't affect them.
421-
//
422-
// For a given workflow execution, only one active fast-forward is allowed at a time.
423-
// If a new fast-forward is set via UpdateWorkflowExecutionOptions before the previous
419+
// Optionally fast-forward the current execution by this duration ahead of current execution time.
420+
// For a given execution, only one active fast-forward is allowed at a time.
421+
// If a new fast-forward is set via a update call before the previous
424422
// one completes, the new one will override the previous one.
425423
// If the fast-forward duration exceeds the remaining execution timeout, time will only
426424
// be fast-forwarded up to the end of the execution.
425+
//
426+
// If the executions are workflows:
427+
// When the fast-forward completes, time skipping is disabled by the call that initiated
428+
// the fast-forward, and this action is recorded in the WorkflowExecutionTimeSkippingTransitionedEvent.
429+
// It can be re-enabled by setting `enabled` to true via UpdateWorkflowExecutionOptions.
430+
// The current workflow execution is a chain of runs (retries, cron, continue-as-new);
431+
// child workflows are separate executions, so this fast_forward won't affect them.
427432
google.protobuf.Duration fast_forward = 2;
428433

429434
// By default, child workflows inherit the "enabled" flag when they are started.
430435
// This flag disables that inheritance.
431436
bool disable_child_propagation = 3;
437+
438+
// By default, executions inherit the "enabled" flag when they are started by a scheduler.
439+
// This flag disables that inheritance.
440+
bool disable_scheduled_action_propagation = 4;
432441
}
433442

434443
// The time-skipping state that needs to be propagated from a parent workflow to a child workflow,

temporal/api/schedule/v1/message.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ message SchedulePatch {
312312
string unpause = 4;
313313

314314
// If set, updates the time-skipping configuration for this schedule.
315-
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 5;
315+
temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 5;
316316
}
317317

318318
message ScheduleInfo {
@@ -364,7 +364,7 @@ message Schedule {
364364
ScheduleState state = 4;
365365
// Time-skipping configuration for workflows started by this schedule.
366366
// If not set, time skipping is disabled for triggered workflow executions.
367-
temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 5;
367+
temporal.api.common.v1.TimeSkippingConfig time_skipping_config = 5;
368368
}
369369

370370
// ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo

0 commit comments

Comments
 (0)