temporalio 1.7.0 → 1.9.0
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.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/Rakefile +19 -0
- data/lib/temporalio/activity/info.rb +0 -3
- data/lib/temporalio/client/activity_execution.rb +83 -6
- data/lib/temporalio/client/activity_execution_count.rb +0 -4
- data/lib/temporalio/client/activity_execution_options.rb +39 -0
- data/lib/temporalio/client/activity_execution_status.rb +1 -2
- data/lib/temporalio/client/activity_handle.rb +127 -3
- data/lib/temporalio/client/activity_id_reference.rb +0 -4
- data/lib/temporalio/client/activity_options.rb +113 -0
- data/lib/temporalio/client/interceptor.rb +63 -26
- data/lib/temporalio/client/pending_activity_state.rb +0 -2
- data/lib/temporalio/client.rb +6 -16
- data/lib/temporalio/common_enums.rb +0 -4
- data/lib/temporalio/error/failure.rb +0 -2
- data/lib/temporalio/error.rb +0 -2
- data/lib/temporalio/internal/client/implementation.rb +60 -3
- data/lib/temporalio/scoped_logger.rb +3 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +11 -1
- data/rbi/temporalio/client/activity_execution.rbi +28 -1
- data/rbi/temporalio/client/activity_execution_options.rbi +58 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +1 -0
- data/rbi/temporalio/client/activity_handle.rbi +43 -2
- data/rbi/temporalio/client/activity_options.rbi +49 -0
- data/rbi/temporalio/client/interceptor.rbi +108 -1
- data/rbi/temporalio/client.rbi +4 -4
- data/sig/temporalio/client/activity_execution.rbs +11 -1
- data/sig/temporalio/client/activity_execution_options.rbs +27 -0
- data/sig/temporalio/client/activity_execution_status.rbs +1 -0
- data/sig/temporalio/client/activity_handle.rbs +23 -1
- data/sig/temporalio/client/activity_options.rbs +30 -0
- data/sig/temporalio/client/interceptor.rbs +64 -2
- data/sig/temporalio/client.rbs +2 -2
- data/sig/temporalio/internal/client/implementation.rbs +7 -0
- metadata +7 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Temporalio
|
|
4
|
+
class Client
|
|
5
|
+
module ActivityOptions
|
|
6
|
+
class Key
|
|
7
|
+
sig { returns(String) }
|
|
8
|
+
def name; end
|
|
9
|
+
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
name: String,
|
|
13
|
+
to_proto: T.proc.params(proto: Temporalio::Api::Activity::V1::ActivityOptions, value: Object).void
|
|
14
|
+
).void
|
|
15
|
+
end
|
|
16
|
+
def initialize(name, &to_proto); end
|
|
17
|
+
|
|
18
|
+
sig { params(value: Object).returns(Temporalio::Client::ActivityOptions::Update) }
|
|
19
|
+
def value_set(value); end
|
|
20
|
+
|
|
21
|
+
sig { returns(Temporalio::Client::ActivityOptions::Update) }
|
|
22
|
+
def value_unset; end
|
|
23
|
+
|
|
24
|
+
sig { params(proto: Temporalio::Api::Activity::V1::ActivityOptions, value: Object).void }
|
|
25
|
+
def _apply(proto, value); end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
class Update
|
|
29
|
+
sig { returns(Temporalio::Client::ActivityOptions::Key) }
|
|
30
|
+
def key; end
|
|
31
|
+
|
|
32
|
+
sig { returns(T.nilable(Object)) }
|
|
33
|
+
def value; end
|
|
34
|
+
|
|
35
|
+
sig { params(key: Temporalio::Client::ActivityOptions::Key, value: T.nilable(Object)).void }
|
|
36
|
+
def initialize(key, value); end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
TASK_QUEUE = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
40
|
+
SCHEDULE_TO_CLOSE_TIMEOUT = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
41
|
+
SCHEDULE_TO_START_TIMEOUT = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
42
|
+
START_TO_CLOSE_TIMEOUT = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
43
|
+
HEARTBEAT_TIMEOUT = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
44
|
+
START_DELAY = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
45
|
+
RETRY_POLICY = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
46
|
+
PRIORITY = T.let(T.unsafe(nil), Temporalio::Client::ActivityOptions::Key)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -792,7 +792,7 @@ class Temporalio::Client::Interceptor::StartActivityInput < ::Data
|
|
|
792
792
|
def search_attributes; end
|
|
793
793
|
|
|
794
794
|
sig { returns(T.nilable(String)) }
|
|
795
|
-
def
|
|
795
|
+
def summary; end
|
|
796
796
|
|
|
797
797
|
sig { returns(T.nilable(String)) }
|
|
798
798
|
def static_details; end
|
|
@@ -834,6 +834,18 @@ class Temporalio::Client::Interceptor::DescribeActivityInput < ::Data
|
|
|
834
834
|
sig { returns(T.nilable(String)) }
|
|
835
835
|
def activity_run_id; end
|
|
836
836
|
|
|
837
|
+
sig { returns(T::Boolean) }
|
|
838
|
+
def include_input; end
|
|
839
|
+
|
|
840
|
+
sig { returns(T::Boolean) }
|
|
841
|
+
def include_outcome; end
|
|
842
|
+
|
|
843
|
+
sig { returns(T::Boolean) }
|
|
844
|
+
def include_heartbeat_details; end
|
|
845
|
+
|
|
846
|
+
sig { returns(T::Boolean) }
|
|
847
|
+
def include_last_failure; end
|
|
848
|
+
|
|
837
849
|
sig { returns(T.nilable(Temporalio::Client::RPCOptions)) }
|
|
838
850
|
def rpc_options; end
|
|
839
851
|
|
|
@@ -849,6 +861,88 @@ class Temporalio::Client::Interceptor::DescribeActivityInput < ::Data
|
|
|
849
861
|
end
|
|
850
862
|
end
|
|
851
863
|
|
|
864
|
+
class Temporalio::Client::Interceptor::PauseActivityInput < ::Data
|
|
865
|
+
sig { returns(String) }
|
|
866
|
+
def activity_id; end
|
|
867
|
+
|
|
868
|
+
sig { returns(T.nilable(String)) }
|
|
869
|
+
def activity_run_id; end
|
|
870
|
+
|
|
871
|
+
sig { returns(T.nilable(String)) }
|
|
872
|
+
def reason; end
|
|
873
|
+
|
|
874
|
+
sig { returns(T.nilable(Temporalio::Client::RPCOptions)) }
|
|
875
|
+
def rpc_options; end
|
|
876
|
+
|
|
877
|
+
class << self
|
|
878
|
+
sig { params(args: T.untyped).returns(Temporalio::Client::Interceptor::PauseActivityInput) }
|
|
879
|
+
def new(*args); end
|
|
880
|
+
|
|
881
|
+
sig { params(args: T.untyped).returns(Temporalio::Client::Interceptor::PauseActivityInput) }
|
|
882
|
+
def [](*args); end
|
|
883
|
+
|
|
884
|
+
sig { returns(T::Array[Symbol]) }
|
|
885
|
+
def members; end
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
class Temporalio::Client::Interceptor::UnpauseActivityInput < ::Data
|
|
889
|
+
sig { returns(String) }
|
|
890
|
+
def activity_id; end
|
|
891
|
+
|
|
892
|
+
sig { returns(T.nilable(String)) }
|
|
893
|
+
def activity_run_id; end
|
|
894
|
+
|
|
895
|
+
sig { returns(T.nilable(String)) }
|
|
896
|
+
def reason; end
|
|
897
|
+
|
|
898
|
+
sig { returns(T.nilable(Float)) }
|
|
899
|
+
def jitter; end
|
|
900
|
+
|
|
901
|
+
sig { returns(T.nilable(Temporalio::Client::RPCOptions)) }
|
|
902
|
+
def rpc_options; end
|
|
903
|
+
|
|
904
|
+
class << self
|
|
905
|
+
sig { params(args: T.untyped).returns(Temporalio::Client::Interceptor::UnpauseActivityInput) }
|
|
906
|
+
def new(*args); end
|
|
907
|
+
|
|
908
|
+
sig { params(args: T.untyped).returns(Temporalio::Client::Interceptor::UnpauseActivityInput) }
|
|
909
|
+
def [](*args); end
|
|
910
|
+
|
|
911
|
+
sig { returns(T::Array[Symbol]) }
|
|
912
|
+
def members; end
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
class Temporalio::Client::Interceptor::UpdateActivityOptionsInput < ::Data
|
|
916
|
+
sig { returns(String) }
|
|
917
|
+
def activity_id; end
|
|
918
|
+
|
|
919
|
+
sig { returns(T.nilable(String)) }
|
|
920
|
+
def activity_run_id; end
|
|
921
|
+
|
|
922
|
+
sig { returns(Temporalio::Api::Activity::V1::ActivityOptions) }
|
|
923
|
+
def activity_options; end
|
|
924
|
+
|
|
925
|
+
sig { returns(Google::Protobuf::FieldMask) }
|
|
926
|
+
def update_mask; end
|
|
927
|
+
|
|
928
|
+
sig { returns(T::Boolean) }
|
|
929
|
+
def restore_original; end
|
|
930
|
+
|
|
931
|
+
sig { returns(T.nilable(Temporalio::Client::RPCOptions)) }
|
|
932
|
+
def rpc_options; end
|
|
933
|
+
|
|
934
|
+
class << self
|
|
935
|
+
sig { params(args: T.untyped).returns(Temporalio::Client::Interceptor::UpdateActivityOptionsInput) }
|
|
936
|
+
def new(*args); end
|
|
937
|
+
|
|
938
|
+
sig { params(args: T.untyped).returns(Temporalio::Client::Interceptor::UpdateActivityOptionsInput) }
|
|
939
|
+
def [](*args); end
|
|
940
|
+
|
|
941
|
+
sig { returns(T::Array[Symbol]) }
|
|
942
|
+
def members; end
|
|
943
|
+
end
|
|
944
|
+
end
|
|
945
|
+
|
|
852
946
|
class Temporalio::Client::Interceptor::CancelActivityInput < ::Data
|
|
853
947
|
sig { returns(String) }
|
|
854
948
|
def activity_id; end
|
|
@@ -1056,6 +1150,19 @@ class Temporalio::Client::Interceptor::Outbound
|
|
|
1056
1150
|
sig { params(input: Temporalio::Client::Interceptor::TerminateActivityInput).void }
|
|
1057
1151
|
def terminate_activity(input); end
|
|
1058
1152
|
|
|
1153
|
+
sig { params(input: Temporalio::Client::Interceptor::PauseActivityInput).void }
|
|
1154
|
+
def pause_activity(input); end
|
|
1155
|
+
|
|
1156
|
+
sig { params(input: Temporalio::Client::Interceptor::UnpauseActivityInput).void }
|
|
1157
|
+
def unpause_activity(input); end
|
|
1158
|
+
|
|
1159
|
+
|
|
1160
|
+
sig do
|
|
1161
|
+
params(input: Temporalio::Client::Interceptor::UpdateActivityOptionsInput)
|
|
1162
|
+
.returns(Temporalio::Client::ActivityExecutionOptions)
|
|
1163
|
+
end
|
|
1164
|
+
def update_activity_options(input); end
|
|
1165
|
+
|
|
1059
1166
|
sig { params(input: Temporalio::Client::Interceptor::ListActivitiesInput).returns(T::Enumerator[Temporalio::Client::ActivityExecution]) }
|
|
1060
1167
|
def list_activities(input); end
|
|
1061
1168
|
|
data/rbi/temporalio/client.rbi
CHANGED
|
@@ -179,7 +179,7 @@ class Temporalio::Client
|
|
|
179
179
|
id_conflict_policy: Integer,
|
|
180
180
|
retry_policy: T.nilable(Temporalio::RetryPolicy),
|
|
181
181
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
182
|
-
|
|
182
|
+
summary: T.nilable(String),
|
|
183
183
|
static_details: T.nilable(String),
|
|
184
184
|
priority: Temporalio::Priority,
|
|
185
185
|
start_delay: T.nilable(T.any(Integer, Float)),
|
|
@@ -201,7 +201,7 @@ class Temporalio::Client
|
|
|
201
201
|
id_conflict_policy: T.unsafe(nil),
|
|
202
202
|
retry_policy: T.unsafe(nil),
|
|
203
203
|
search_attributes: T.unsafe(nil),
|
|
204
|
-
|
|
204
|
+
summary: T.unsafe(nil),
|
|
205
205
|
static_details: T.unsafe(nil),
|
|
206
206
|
priority: T.unsafe(nil),
|
|
207
207
|
start_delay: T.unsafe(nil),
|
|
@@ -225,7 +225,7 @@ class Temporalio::Client
|
|
|
225
225
|
id_conflict_policy: Integer,
|
|
226
226
|
retry_policy: T.nilable(Temporalio::RetryPolicy),
|
|
227
227
|
search_attributes: T.nilable(Temporalio::SearchAttributes),
|
|
228
|
-
|
|
228
|
+
summary: T.nilable(String),
|
|
229
229
|
static_details: T.nilable(String),
|
|
230
230
|
priority: Temporalio::Priority,
|
|
231
231
|
start_delay: T.nilable(T.any(Integer, Float)),
|
|
@@ -247,7 +247,7 @@ class Temporalio::Client
|
|
|
247
247
|
id_conflict_policy: T.unsafe(nil),
|
|
248
248
|
retry_policy: T.unsafe(nil),
|
|
249
249
|
search_attributes: T.unsafe(nil),
|
|
250
|
-
|
|
250
|
+
summary: T.unsafe(nil),
|
|
251
251
|
static_details: T.unsafe(nil),
|
|
252
252
|
priority: T.unsafe(nil),
|
|
253
253
|
start_delay: T.unsafe(nil),
|
|
@@ -9,6 +9,7 @@ module Temporalio
|
|
|
9
9
|
def activity_run_id: -> String?
|
|
10
10
|
def activity_type: -> String
|
|
11
11
|
def schedule_time: -> Time?
|
|
12
|
+
def execution_time: -> Time?
|
|
12
13
|
def close_time: -> Time?
|
|
13
14
|
def status: -> ActivityExecutionStatus::enum
|
|
14
15
|
def search_attributes: -> SearchAttributes?
|
|
@@ -25,12 +26,21 @@ module Temporalio
|
|
|
25
26
|
def schedule_to_start_timeout: -> Float?
|
|
26
27
|
def start_to_close_timeout: -> Float?
|
|
27
28
|
def heartbeat_timeout: -> Float?
|
|
29
|
+
def start_delay: -> Float?
|
|
28
30
|
def has_heartbeat_details?: -> bool
|
|
31
|
+
def has_last_failure?: -> bool
|
|
32
|
+
def has_input?: -> bool
|
|
33
|
+
def input: (?hints: Array[Object]?) -> Array[Object?]
|
|
34
|
+
def has_result?: -> bool
|
|
35
|
+
def result: (?result_hint: Object?) -> Object?
|
|
36
|
+
def failure: -> Error::Failure?
|
|
29
37
|
def heartbeat_details: (?hints: Array[Object]?) -> Array[Object?]
|
|
30
38
|
def retry_policy: -> RetryPolicy
|
|
31
39
|
def last_heartbeat_time: -> Time?
|
|
32
40
|
def last_started_time: -> Time?
|
|
33
41
|
def attempt: -> Integer
|
|
42
|
+
|
|
43
|
+
def total_heartbeat_count: -> Integer
|
|
34
44
|
def last_failure: -> Error::Failure?
|
|
35
45
|
def expiration_time: -> Time?
|
|
36
46
|
def last_worker_identity: -> String?
|
|
@@ -40,7 +50,7 @@ module Temporalio
|
|
|
40
50
|
def last_deployment_version: -> WorkerDeploymentVersion?
|
|
41
51
|
def priority: -> Priority
|
|
42
52
|
def canceled_reason: -> String?
|
|
43
|
-
def
|
|
53
|
+
def summary: -> String?
|
|
44
54
|
def static_details: -> String?
|
|
45
55
|
|
|
46
56
|
private def user_metadata: -> [String?, String?]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
class Client
|
|
3
|
+
class ActivityExecutionOptions
|
|
4
|
+
attr_reader task_queue: String?
|
|
5
|
+
attr_reader schedule_to_close_timeout: Float?
|
|
6
|
+
attr_reader schedule_to_start_timeout: Float?
|
|
7
|
+
attr_reader start_to_close_timeout: Float?
|
|
8
|
+
attr_reader heartbeat_timeout: Float?
|
|
9
|
+
attr_reader retry_policy: RetryPolicy?
|
|
10
|
+
attr_reader priority: Priority
|
|
11
|
+
attr_reader start_delay: Float?
|
|
12
|
+
|
|
13
|
+
def self._from_proto: (untyped options) -> ActivityExecutionOptions
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
task_queue: String?,
|
|
17
|
+
schedule_to_close_timeout: Float?,
|
|
18
|
+
schedule_to_start_timeout: Float?,
|
|
19
|
+
start_to_close_timeout: Float?,
|
|
20
|
+
heartbeat_timeout: Float?,
|
|
21
|
+
retry_policy: RetryPolicy?,
|
|
22
|
+
priority: Priority,
|
|
23
|
+
start_delay: Float?
|
|
24
|
+
) -> void
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
module Temporalio
|
|
2
2
|
class Client
|
|
3
3
|
class ActivityHandle
|
|
4
|
+
UPDATABLE_OPTION_PATHS: Hash[Symbol, String]
|
|
5
|
+
|
|
4
6
|
attr_reader id: String
|
|
5
7
|
attr_reader run_id: String?
|
|
6
8
|
attr_reader result_hint: Object?
|
|
@@ -14,12 +16,32 @@ module Temporalio
|
|
|
14
16
|
|
|
15
17
|
def result: (?result_hint: Object?, ?rpc_options: RPCOptions?) -> Object?
|
|
16
18
|
|
|
17
|
-
def describe: (
|
|
19
|
+
def describe: (
|
|
20
|
+
?include_input: bool,
|
|
21
|
+
?include_outcome: bool,
|
|
22
|
+
?include_heartbeat_details: bool,
|
|
23
|
+
?include_last_failure: bool,
|
|
24
|
+
?rpc_options: RPCOptions?
|
|
25
|
+
) -> ActivityExecution::Description
|
|
18
26
|
|
|
19
27
|
def cancel: (?String? reason, ?rpc_options: RPCOptions?) -> void
|
|
20
28
|
|
|
21
29
|
def terminate: (?String? reason, ?rpc_options: RPCOptions?) -> void
|
|
22
30
|
|
|
31
|
+
def pause: (?String? reason, ?rpc_options: RPCOptions?) -> void
|
|
32
|
+
|
|
33
|
+
def unpause: (
|
|
34
|
+
?reason: String?,
|
|
35
|
+
?jitter: Float?,
|
|
36
|
+
?rpc_options: RPCOptions?
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def update_options: (
|
|
40
|
+
*ActivityOptions::Update updates,
|
|
41
|
+
?restore_original: bool,
|
|
42
|
+
?rpc_options: RPCOptions?
|
|
43
|
+
) -> ActivityExecutionOptions
|
|
44
|
+
|
|
23
45
|
private def _process_outcome: (Api::Activity::V1::ActivityExecutionOutcome? outcome, Object? hint) -> Object?
|
|
24
46
|
end
|
|
25
47
|
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Temporalio
|
|
2
|
+
class Client
|
|
3
|
+
module ActivityOptions
|
|
4
|
+
class Key
|
|
5
|
+
attr_reader name: String
|
|
6
|
+
|
|
7
|
+
def initialize: (String name) { (untyped proto, untyped value) -> void } -> void
|
|
8
|
+
def value_set: (untyped value) -> Update
|
|
9
|
+
def value_unset: () -> Update
|
|
10
|
+
def _apply: (untyped proto, untyped value) -> void
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
class Update
|
|
14
|
+
attr_reader key: Key
|
|
15
|
+
attr_reader value: untyped?
|
|
16
|
+
|
|
17
|
+
def initialize: (Key key, untyped? value) -> void
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
TASK_QUEUE: Key
|
|
21
|
+
SCHEDULE_TO_CLOSE_TIMEOUT: Key
|
|
22
|
+
SCHEDULE_TO_START_TIMEOUT: Key
|
|
23
|
+
START_TO_CLOSE_TIMEOUT: Key
|
|
24
|
+
HEARTBEAT_TIMEOUT: Key
|
|
25
|
+
START_DELAY: Key
|
|
26
|
+
RETRY_POLICY: Key
|
|
27
|
+
PRIORITY: Key
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -445,7 +445,7 @@ module Temporalio
|
|
|
445
445
|
attr_reader id_conflict_policy: ActivityIDConflictPolicy::enum
|
|
446
446
|
attr_reader retry_policy: RetryPolicy?
|
|
447
447
|
attr_reader search_attributes: SearchAttributes?
|
|
448
|
-
attr_reader
|
|
448
|
+
attr_reader summary: String?
|
|
449
449
|
attr_reader static_details: String?
|
|
450
450
|
attr_reader headers: Hash[String, Object?]
|
|
451
451
|
attr_reader priority: Priority
|
|
@@ -467,7 +467,7 @@ module Temporalio
|
|
|
467
467
|
id_conflict_policy: ActivityIDConflictPolicy::enum,
|
|
468
468
|
retry_policy: RetryPolicy?,
|
|
469
469
|
search_attributes: SearchAttributes?,
|
|
470
|
-
|
|
470
|
+
summary: String?,
|
|
471
471
|
static_details: String?,
|
|
472
472
|
headers: Hash[String, Object?],
|
|
473
473
|
priority: Priority,
|
|
@@ -481,11 +481,19 @@ module Temporalio
|
|
|
481
481
|
class DescribeActivityInput
|
|
482
482
|
attr_reader activity_id: String
|
|
483
483
|
attr_reader activity_run_id: String?
|
|
484
|
+
attr_reader include_input: bool
|
|
485
|
+
attr_reader include_outcome: bool
|
|
486
|
+
attr_reader include_heartbeat_details: bool
|
|
487
|
+
attr_reader include_last_failure: bool
|
|
484
488
|
attr_reader rpc_options: RPCOptions?
|
|
485
489
|
|
|
486
490
|
def initialize: (
|
|
487
491
|
activity_id: String,
|
|
488
492
|
activity_run_id: String?,
|
|
493
|
+
include_input: bool,
|
|
494
|
+
include_outcome: bool,
|
|
495
|
+
include_heartbeat_details: bool,
|
|
496
|
+
include_last_failure: bool,
|
|
489
497
|
rpc_options: RPCOptions?
|
|
490
498
|
) -> void
|
|
491
499
|
end
|
|
@@ -518,6 +526,54 @@ module Temporalio
|
|
|
518
526
|
) -> void
|
|
519
527
|
end
|
|
520
528
|
|
|
529
|
+
class PauseActivityInput
|
|
530
|
+
attr_reader activity_id: String
|
|
531
|
+
attr_reader activity_run_id: String?
|
|
532
|
+
attr_reader reason: String?
|
|
533
|
+
attr_reader rpc_options: RPCOptions?
|
|
534
|
+
|
|
535
|
+
def initialize: (
|
|
536
|
+
activity_id: String,
|
|
537
|
+
activity_run_id: String?,
|
|
538
|
+
reason: String?,
|
|
539
|
+
rpc_options: RPCOptions?
|
|
540
|
+
) -> void
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
class UnpauseActivityInput
|
|
544
|
+
attr_reader activity_id: String
|
|
545
|
+
attr_reader activity_run_id: String?
|
|
546
|
+
attr_reader reason: String?
|
|
547
|
+
attr_reader jitter: Float?
|
|
548
|
+
attr_reader rpc_options: RPCOptions?
|
|
549
|
+
|
|
550
|
+
def initialize: (
|
|
551
|
+
activity_id: String,
|
|
552
|
+
activity_run_id: String?,
|
|
553
|
+
reason: String?,
|
|
554
|
+
jitter: Float?,
|
|
555
|
+
rpc_options: RPCOptions?
|
|
556
|
+
) -> void
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
class UpdateActivityOptionsInput
|
|
560
|
+
attr_reader activity_id: String
|
|
561
|
+
attr_reader activity_run_id: String?
|
|
562
|
+
attr_reader activity_options: untyped
|
|
563
|
+
attr_reader update_mask: untyped
|
|
564
|
+
attr_reader restore_original: bool
|
|
565
|
+
attr_reader rpc_options: RPCOptions?
|
|
566
|
+
|
|
567
|
+
def initialize: (
|
|
568
|
+
activity_id: String,
|
|
569
|
+
activity_run_id: String?,
|
|
570
|
+
activity_options: untyped,
|
|
571
|
+
update_mask: untyped,
|
|
572
|
+
restore_original: bool,
|
|
573
|
+
rpc_options: RPCOptions?
|
|
574
|
+
) -> void
|
|
575
|
+
end
|
|
576
|
+
|
|
521
577
|
class ListActivitiesInput
|
|
522
578
|
attr_reader query: String
|
|
523
579
|
attr_reader rpc_options: RPCOptions?
|
|
@@ -611,6 +667,12 @@ module Temporalio
|
|
|
611
667
|
|
|
612
668
|
def terminate_activity: (TerminateActivityInput input) -> void
|
|
613
669
|
|
|
670
|
+
def pause_activity: (PauseActivityInput input) -> void
|
|
671
|
+
|
|
672
|
+
def unpause_activity: (UnpauseActivityInput input) -> void
|
|
673
|
+
|
|
674
|
+
def update_activity_options: (UpdateActivityOptionsInput input) -> untyped
|
|
675
|
+
|
|
614
676
|
def list_activities: (ListActivitiesInput input) -> Enumerator[ActivityExecution, ActivityExecution]
|
|
615
677
|
|
|
616
678
|
def count_activities: (CountActivitiesInput input) -> ActivityExecutionCount
|
data/sig/temporalio/client.rbs
CHANGED
|
@@ -152,7 +152,7 @@ module Temporalio
|
|
|
152
152
|
?id_conflict_policy: ActivityIDConflictPolicy::enum,
|
|
153
153
|
?retry_policy: RetryPolicy?,
|
|
154
154
|
?search_attributes: SearchAttributes?,
|
|
155
|
-
?
|
|
155
|
+
?summary: String?,
|
|
156
156
|
?static_details: String?,
|
|
157
157
|
?priority: Priority,
|
|
158
158
|
?start_delay: duration?,
|
|
@@ -174,7 +174,7 @@ module Temporalio
|
|
|
174
174
|
?id_conflict_policy: ActivityIDConflictPolicy::enum,
|
|
175
175
|
?retry_policy: RetryPolicy?,
|
|
176
176
|
?search_attributes: SearchAttributes?,
|
|
177
|
-
?
|
|
177
|
+
?summary: String?,
|
|
178
178
|
?static_details: String?,
|
|
179
179
|
?priority: Priority,
|
|
180
180
|
?start_delay: duration?,
|
|
@@ -22,6 +22,13 @@ module Temporalio
|
|
|
22
22
|
|
|
23
23
|
def terminate_activity: (Temporalio::Client::Interceptor::TerminateActivityInput input) -> void
|
|
24
24
|
|
|
25
|
+
def pause_activity: (Temporalio::Client::Interceptor::PauseActivityInput input) -> void
|
|
26
|
+
|
|
27
|
+
def unpause_activity: (Temporalio::Client::Interceptor::UnpauseActivityInput input) -> void
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def update_activity_options: (Temporalio::Client::Interceptor::UpdateActivityOptionsInput input) -> untyped
|
|
31
|
+
|
|
25
32
|
def list_activities: (Temporalio::Client::Interceptor::ListActivitiesInput input) -> Enumerator[Temporalio::Client::ActivityExecution, Temporalio::Client::ActivityExecution]
|
|
26
33
|
|
|
27
34
|
def count_activities: (Temporalio::Client::Interceptor::CountActivitiesInput input) -> Temporalio::Client::ActivityExecutionCount
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: temporalio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Temporal Technologies Inc
|
|
@@ -143,9 +143,11 @@ files:
|
|
|
143
143
|
- lib/temporalio/client.rb
|
|
144
144
|
- lib/temporalio/client/activity_execution.rb
|
|
145
145
|
- lib/temporalio/client/activity_execution_count.rb
|
|
146
|
+
- lib/temporalio/client/activity_execution_options.rb
|
|
146
147
|
- lib/temporalio/client/activity_execution_status.rb
|
|
147
148
|
- lib/temporalio/client/activity_handle.rb
|
|
148
149
|
- lib/temporalio/client/activity_id_reference.rb
|
|
150
|
+
- lib/temporalio/client/activity_options.rb
|
|
149
151
|
- lib/temporalio/client/async_activity_handle.rb
|
|
150
152
|
- lib/temporalio/client/connection.rb
|
|
151
153
|
- lib/temporalio/client/connection/cloud_service.rb
|
|
@@ -364,9 +366,11 @@ files:
|
|
|
364
366
|
- rbi/temporalio/client.rbi
|
|
365
367
|
- rbi/temporalio/client/activity_execution.rbi
|
|
366
368
|
- rbi/temporalio/client/activity_execution_count.rbi
|
|
369
|
+
- rbi/temporalio/client/activity_execution_options.rbi
|
|
367
370
|
- rbi/temporalio/client/activity_execution_status.rbi
|
|
368
371
|
- rbi/temporalio/client/activity_handle.rbi
|
|
369
372
|
- rbi/temporalio/client/activity_id_reference.rbi
|
|
373
|
+
- rbi/temporalio/client/activity_options.rbi
|
|
370
374
|
- rbi/temporalio/client/async_activity_handle.rbi
|
|
371
375
|
- rbi/temporalio/client/connection.rbi
|
|
372
376
|
- rbi/temporalio/client/connection/cloud_service.rbi
|
|
@@ -583,9 +587,11 @@ files:
|
|
|
583
587
|
- sig/temporalio/client.rbs
|
|
584
588
|
- sig/temporalio/client/activity_execution.rbs
|
|
585
589
|
- sig/temporalio/client/activity_execution_count.rbs
|
|
590
|
+
- sig/temporalio/client/activity_execution_options.rbs
|
|
586
591
|
- sig/temporalio/client/activity_execution_status.rbs
|
|
587
592
|
- sig/temporalio/client/activity_handle.rbs
|
|
588
593
|
- sig/temporalio/client/activity_id_reference.rbs
|
|
594
|
+
- sig/temporalio/client/activity_options.rbs
|
|
589
595
|
- sig/temporalio/client/async_activity_handle.rbs
|
|
590
596
|
- sig/temporalio/client/connection.rbs
|
|
591
597
|
- sig/temporalio/client/connection/cloud_service.rbs
|