temporalio 1.6.0 → 1.6.1.test.only.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of temporalio might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Cargo.lock +9 -17
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/batch/v1/message.rb +4 -1
- data/lib/temporalio/api/command/v1/message.rb +2 -1
- data/lib/temporalio/api/common/v1/message.rb +2 -1
- data/lib/temporalio/api/enums/v1/activity.rb +1 -1
- data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
- data/lib/temporalio/api/enums/v1/common.rb +2 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
- data/lib/temporalio/api/history/v1/message.rb +1 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +1 -1
- data/lib/temporalio/client/connection.rb +33 -3
- data/lib/temporalio/client/schedule.rb +4 -5
- data/lib/temporalio/client/workflow_execution.rb +2 -2
- data/lib/temporalio/client/workflow_handle.rb +13 -7
- data/lib/temporalio/client.rb +4 -6
- data/lib/temporalio/internal/bridge/client.rb +3 -1
- data/lib/temporalio/internal/bridge/worker.rb +3 -1
- data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
- data/lib/temporalio/runtime.rb +2 -2
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/workflow_replayer.rb +2 -0
- data/lib/temporalio/worker.rb +24 -4
- data/lib/temporalio/workflow.rb +8 -9
- data/rbi/temporalio/api/activity/v1/message.rbi +78 -12
- data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
- data/rbi/temporalio/api/command/v1/message.rbi +22 -2
- data/rbi/temporalio/api/common/v1/message.rbi +100 -8
- data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +3 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
- data/rbi/temporalio/api/history/v1/message.rbi +22 -2
- data/rbi/temporalio/api/namespace/v1/message.rbi +70 -2
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +379 -57
- data/rbi/temporalio/client/connection.rbi +2 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
- data/rbi/temporalio/worker.rbi +9 -2
- data/rbi/temporalio/workflow/future.rbi +1 -1
- data/sig/temporalio/api/activity/v1/message.rbs +37 -2
- data/sig/temporalio/api/batch/v1/message.rbs +86 -0
- data/sig/temporalio/api/command/v1/message.rbs +10 -0
- data/sig/temporalio/api/common/v1/message.rbs +47 -7
- data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
- data/sig/temporalio/api/enums/v1/common.rbs +23 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +15 -6
- data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
- data/sig/temporalio/api/history/v1/message.rbs +10 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +32 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +174 -18
- data/sig/temporalio/client/connection.rbs +14 -1
- data/sig/temporalio/internal/bridge/client.rbs +5 -1
- data/sig/temporalio/internal/bridge/worker.rbs +5 -1
- data/sig/temporalio/worker.rbs +8 -2
- metadata +1 -1
|
@@ -698,7 +698,11 @@ class Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities
|
|
|
698
698
|
worker_commands: T.nilable(T::Boolean),
|
|
699
699
|
standalone_nexus_operation: T.nilable(T::Boolean),
|
|
700
700
|
workflow_update_callbacks: T.nilable(T::Boolean),
|
|
701
|
-
poller_autoscaling_auto_enroll: T.nilable(T::Boolean)
|
|
701
|
+
poller_autoscaling_auto_enroll: T.nilable(T::Boolean),
|
|
702
|
+
workflow_task_completion_pagination: T.nilable(T::Boolean),
|
|
703
|
+
standalone_activity_start_delay: T.nilable(T::Boolean),
|
|
704
|
+
standalone_activity_batch_operations: T.nilable(T::Boolean),
|
|
705
|
+
standalone_activity_operator_commands: T.nilable(T::Boolean)
|
|
702
706
|
).void
|
|
703
707
|
end
|
|
704
708
|
def initialize(
|
|
@@ -714,7 +718,11 @@ class Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities
|
|
|
714
718
|
worker_commands: false,
|
|
715
719
|
standalone_nexus_operation: false,
|
|
716
720
|
workflow_update_callbacks: false,
|
|
717
|
-
poller_autoscaling_auto_enroll: false
|
|
721
|
+
poller_autoscaling_auto_enroll: false,
|
|
722
|
+
workflow_task_completion_pagination: false,
|
|
723
|
+
standalone_activity_start_delay: false,
|
|
724
|
+
standalone_activity_batch_operations: false,
|
|
725
|
+
standalone_activity_operator_commands: false
|
|
718
726
|
)
|
|
719
727
|
end
|
|
720
728
|
|
|
@@ -925,6 +933,66 @@ class Temporalio::Api::Namespace::V1::NamespaceInfo::Capabilities
|
|
|
925
933
|
def clear_poller_autoscaling_auto_enroll
|
|
926
934
|
end
|
|
927
935
|
|
|
936
|
+
# True if the namespace supports pagination of `RespondWorkflowTaskCompleted` request.
|
|
937
|
+
sig { returns(T::Boolean) }
|
|
938
|
+
def workflow_task_completion_pagination
|
|
939
|
+
end
|
|
940
|
+
|
|
941
|
+
# True if the namespace supports pagination of `RespondWorkflowTaskCompleted` request.
|
|
942
|
+
sig { params(value: T::Boolean).void }
|
|
943
|
+
def workflow_task_completion_pagination=(value)
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# True if the namespace supports pagination of `RespondWorkflowTaskCompleted` request.
|
|
947
|
+
sig { void }
|
|
948
|
+
def clear_workflow_task_completion_pagination
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
# True if the namespace supports start delay for standalone activities.
|
|
952
|
+
sig { returns(T::Boolean) }
|
|
953
|
+
def standalone_activity_start_delay
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# True if the namespace supports start delay for standalone activities.
|
|
957
|
+
sig { params(value: T::Boolean).void }
|
|
958
|
+
def standalone_activity_start_delay=(value)
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
# True if the namespace supports start delay for standalone activities.
|
|
962
|
+
sig { void }
|
|
963
|
+
def clear_standalone_activity_start_delay
|
|
964
|
+
end
|
|
965
|
+
|
|
966
|
+
# True if the namespace supports batch operations for standalone activities.
|
|
967
|
+
sig { returns(T::Boolean) }
|
|
968
|
+
def standalone_activity_batch_operations
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
# True if the namespace supports batch operations for standalone activities.
|
|
972
|
+
sig { params(value: T::Boolean).void }
|
|
973
|
+
def standalone_activity_batch_operations=(value)
|
|
974
|
+
end
|
|
975
|
+
|
|
976
|
+
# True if the namespace supports batch operations for standalone activities.
|
|
977
|
+
sig { void }
|
|
978
|
+
def clear_standalone_activity_batch_operations
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
# True if the namespace supports standalone activity operator commands.
|
|
982
|
+
sig { returns(T::Boolean) }
|
|
983
|
+
def standalone_activity_operator_commands
|
|
984
|
+
end
|
|
985
|
+
|
|
986
|
+
# True if the namespace supports standalone activity operator commands.
|
|
987
|
+
sig { params(value: T::Boolean).void }
|
|
988
|
+
def standalone_activity_operator_commands=(value)
|
|
989
|
+
end
|
|
990
|
+
|
|
991
|
+
# True if the namespace supports standalone activity operator commands.
|
|
992
|
+
sig { void }
|
|
993
|
+
def clear_standalone_activity_operator_commands
|
|
994
|
+
end
|
|
995
|
+
|
|
928
996
|
sig { params(field: String).returns(T.untyped) }
|
|
929
997
|
def [](field)
|
|
930
998
|
end
|
|
@@ -634,14 +634,16 @@ class Temporalio::Api::TaskQueue::V1::TaskQueueStats
|
|
|
634
634
|
approximate_backlog_count: T.nilable(Integer),
|
|
635
635
|
approximate_backlog_age: T.nilable(Google::Protobuf::Duration),
|
|
636
636
|
tasks_add_rate: T.nilable(Float),
|
|
637
|
-
tasks_dispatch_rate: T.nilable(Float)
|
|
637
|
+
tasks_dispatch_rate: T.nilable(Float),
|
|
638
|
+
rate_limiting_active: T.nilable(T::Boolean)
|
|
638
639
|
).void
|
|
639
640
|
end
|
|
640
641
|
def initialize(
|
|
641
642
|
approximate_backlog_count: 0,
|
|
642
643
|
approximate_backlog_age: nil,
|
|
643
644
|
tasks_add_rate: 0.0,
|
|
644
|
-
tasks_dispatch_rate: 0.0
|
|
645
|
+
tasks_dispatch_rate: 0.0,
|
|
646
|
+
rate_limiting_active: false
|
|
645
647
|
)
|
|
646
648
|
end
|
|
647
649
|
|
|
@@ -813,6 +815,30 @@ class Temporalio::Api::TaskQueue::V1::TaskQueueStats
|
|
|
813
815
|
def clear_tasks_dispatch_rate
|
|
814
816
|
end
|
|
815
817
|
|
|
818
|
+
# Whether rate limiting blocked any dispatches within the recent observation window (approximately
|
|
819
|
+
# 30 seconds). When true, adding more workers will not increase throughput — the bottleneck is the
|
|
820
|
+
# rate limit, not worker count. This field is useful for auto-scaling systems to avoid unnecessary
|
|
821
|
+
# scale-up.
|
|
822
|
+
sig { returns(T::Boolean) }
|
|
823
|
+
def rate_limiting_active
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
# Whether rate limiting blocked any dispatches within the recent observation window (approximately
|
|
827
|
+
# 30 seconds). When true, adding more workers will not increase throughput — the bottleneck is the
|
|
828
|
+
# rate limit, not worker count. This field is useful for auto-scaling systems to avoid unnecessary
|
|
829
|
+
# scale-up.
|
|
830
|
+
sig { params(value: T::Boolean).void }
|
|
831
|
+
def rate_limiting_active=(value)
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
# Whether rate limiting blocked any dispatches within the recent observation window (approximately
|
|
835
|
+
# 30 seconds). When true, adding more workers will not increase throughput — the bottleneck is the
|
|
836
|
+
# rate limit, not worker count. This field is useful for auto-scaling systems to avoid unnecessary
|
|
837
|
+
# scale-up.
|
|
838
|
+
sig { void }
|
|
839
|
+
def clear_rate_limiting_active
|
|
840
|
+
end
|
|
841
|
+
|
|
816
842
|
sig { params(field: String).returns(T.untyped) }
|
|
817
843
|
def [](field)
|
|
818
844
|
end
|
|
@@ -2050,6 +2076,91 @@ class Temporalio::Api::TaskQueue::V1::PollerGroupInfo
|
|
|
2050
2076
|
end
|
|
2051
2077
|
end
|
|
2052
2078
|
|
|
2079
|
+
# A versioned snapshot of the poller groups the client should use for future polls to a task
|
|
2080
|
+
# queue. The version is monotonically increasing so that a client can ignore a snapshot that is
|
|
2081
|
+
# older than the one it has already applied.
|
|
2082
|
+
class Temporalio::Api::TaskQueue::V1::PollerGroupsInfo
|
|
2083
|
+
include ::Google::Protobuf::MessageExts
|
|
2084
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2085
|
+
|
|
2086
|
+
sig do
|
|
2087
|
+
params(
|
|
2088
|
+
version: T.nilable(Integer),
|
|
2089
|
+
poller_groups: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)])
|
|
2090
|
+
).void
|
|
2091
|
+
end
|
|
2092
|
+
def initialize(
|
|
2093
|
+
version: 0,
|
|
2094
|
+
poller_groups: []
|
|
2095
|
+
)
|
|
2096
|
+
end
|
|
2097
|
+
|
|
2098
|
+
# Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
|
|
2099
|
+
# version is not greater than the one it last applied.
|
|
2100
|
+
sig { returns(Integer) }
|
|
2101
|
+
def version
|
|
2102
|
+
end
|
|
2103
|
+
|
|
2104
|
+
# Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
|
|
2105
|
+
# version is not greater than the one it last applied.
|
|
2106
|
+
sig { params(value: Integer).void }
|
|
2107
|
+
def version=(value)
|
|
2108
|
+
end
|
|
2109
|
+
|
|
2110
|
+
# Monotonically increasing version of this snapshot. A client should ignore any snapshot whose
|
|
2111
|
+
# version is not greater than the one it last applied.
|
|
2112
|
+
sig { void }
|
|
2113
|
+
def clear_version
|
|
2114
|
+
end
|
|
2115
|
+
|
|
2116
|
+
# The weighted list of poller groups the client should use for future polls to this task queue.
|
|
2117
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)]) }
|
|
2118
|
+
def poller_groups
|
|
2119
|
+
end
|
|
2120
|
+
|
|
2121
|
+
# The weighted list of poller groups the client should use for future polls to this task queue.
|
|
2122
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
2123
|
+
def poller_groups=(value)
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2126
|
+
# The weighted list of poller groups the client should use for future polls to this task queue.
|
|
2127
|
+
sig { void }
|
|
2128
|
+
def clear_poller_groups
|
|
2129
|
+
end
|
|
2130
|
+
|
|
2131
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2132
|
+
def [](field)
|
|
2133
|
+
end
|
|
2134
|
+
|
|
2135
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2136
|
+
def []=(field, value)
|
|
2137
|
+
end
|
|
2138
|
+
|
|
2139
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2140
|
+
def to_h
|
|
2141
|
+
end
|
|
2142
|
+
|
|
2143
|
+
sig { params(str: String).returns(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo) }
|
|
2144
|
+
def self.decode(str)
|
|
2145
|
+
end
|
|
2146
|
+
|
|
2147
|
+
sig { params(msg: Temporalio::Api::TaskQueue::V1::PollerGroupsInfo).returns(String) }
|
|
2148
|
+
def self.encode(msg)
|
|
2149
|
+
end
|
|
2150
|
+
|
|
2151
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo) }
|
|
2152
|
+
def self.decode_json(str, **kw)
|
|
2153
|
+
end
|
|
2154
|
+
|
|
2155
|
+
sig { params(msg: Temporalio::Api::TaskQueue::V1::PollerGroupsInfo, kw: T.untyped).returns(String) }
|
|
2156
|
+
def self.encode_json(msg, **kw)
|
|
2157
|
+
end
|
|
2158
|
+
|
|
2159
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2160
|
+
def self.descriptor
|
|
2161
|
+
end
|
|
2162
|
+
end
|
|
2163
|
+
|
|
2053
2164
|
# Attached to task responses to give hints to the SDK about how it may adjust its number of
|
|
2054
2165
|
# pollers.
|
|
2055
2166
|
class Temporalio::Api::TaskQueue::V1::PollerScalingDecision
|