temporalio 1.7.0-aarch64-linux → 1.8.0-aarch64-linux
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/Rakefile +19 -0
- data/lib/temporalio/client/activity_execution.rb +82 -1
- data/lib/temporalio/client/activity_execution_options.rb +39 -0
- data/lib/temporalio/client/activity_execution_status.rb +1 -0
- data/lib/temporalio/client/activity_handle.rb +122 -1
- data/lib/temporalio/client/activity_options.rb +113 -0
- data/lib/temporalio/client/interceptor.rb +65 -0
- data/lib/temporalio/internal/bridge/3.3/temporalio_bridge.so +0 -0
- data/lib/temporalio/internal/bridge/3.4/temporalio_bridge.so +0 -0
- data/lib/temporalio/internal/bridge/4.0/temporalio_bridge.so +0 -0
- data/lib/temporalio/internal/client/implementation.rb +54 -2
- 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 +27 -0
- 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 +107 -0
- data/sig/temporalio/client/activity_execution.rbs +10 -0
- 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 +62 -0
- data/sig/temporalio/internal/client/implementation.rbs +7 -0
- metadata +8 -2
|
@@ -33,6 +33,9 @@ class Temporalio::Client::ActivityExecution
|
|
|
33
33
|
sig { returns(T.nilable(Time)) }
|
|
34
34
|
def schedule_time; end
|
|
35
35
|
|
|
36
|
+
sig { returns(T.nilable(Time)) }
|
|
37
|
+
def execution_time; end
|
|
38
|
+
|
|
36
39
|
sig { returns(T.nilable(Time)) }
|
|
37
40
|
def close_time; end
|
|
38
41
|
|
|
@@ -76,9 +79,30 @@ class Temporalio::Client::ActivityExecution::Description < ::Temporalio::Client:
|
|
|
76
79
|
sig { returns(T.nilable(Float)) }
|
|
77
80
|
def heartbeat_timeout; end
|
|
78
81
|
|
|
82
|
+
sig { returns(T.nilable(Float)) }
|
|
83
|
+
def start_delay; end
|
|
84
|
+
|
|
79
85
|
sig { returns(T::Boolean) }
|
|
80
86
|
def has_heartbeat_details?; end
|
|
81
87
|
|
|
88
|
+
sig { returns(T::Boolean) }
|
|
89
|
+
def has_last_failure?; end
|
|
90
|
+
|
|
91
|
+
sig { returns(T::Boolean) }
|
|
92
|
+
def has_input?; end
|
|
93
|
+
|
|
94
|
+
sig { params(hints: T.nilable(T::Array[Object])).returns(T::Array[T.nilable(Object)]) }
|
|
95
|
+
def input(hints: T.unsafe(nil)); end
|
|
96
|
+
|
|
97
|
+
sig { returns(T::Boolean) }
|
|
98
|
+
def has_result?; end
|
|
99
|
+
|
|
100
|
+
sig { params(result_hint: T.nilable(Object)).returns(T.nilable(Object)) }
|
|
101
|
+
def result(result_hint: T.unsafe(nil)); end
|
|
102
|
+
|
|
103
|
+
sig { returns(T.nilable(Temporalio::Error::Failure)) }
|
|
104
|
+
def failure; end
|
|
105
|
+
|
|
82
106
|
sig { params(hints: T.nilable(T::Array[Object])).returns(T::Array[T.nilable(Object)]) }
|
|
83
107
|
def heartbeat_details(hints: T.unsafe(nil)); end
|
|
84
108
|
|
|
@@ -94,6 +118,9 @@ class Temporalio::Client::ActivityExecution::Description < ::Temporalio::Client:
|
|
|
94
118
|
sig { returns(Integer) }
|
|
95
119
|
def attempt; end
|
|
96
120
|
|
|
121
|
+
sig { returns(Integer) }
|
|
122
|
+
def total_heartbeat_count; end
|
|
123
|
+
|
|
97
124
|
sig { returns(T.nilable(Temporalio::Error::Failure)) }
|
|
98
125
|
def last_failure; end
|
|
99
126
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
class Temporalio::Client::ActivityExecutionOptions
|
|
4
|
+
class << self
|
|
5
|
+
sig do
|
|
6
|
+
params(options: Temporalio::Api::Activity::V1::ActivityOptions)
|
|
7
|
+
.returns(Temporalio::Client::ActivityExecutionOptions)
|
|
8
|
+
end
|
|
9
|
+
def _from_proto(options); end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
sig do
|
|
13
|
+
params(
|
|
14
|
+
task_queue: T.nilable(String),
|
|
15
|
+
schedule_to_close_timeout: T.nilable(Float),
|
|
16
|
+
schedule_to_start_timeout: T.nilable(Float),
|
|
17
|
+
start_to_close_timeout: T.nilable(Float),
|
|
18
|
+
heartbeat_timeout: T.nilable(Float),
|
|
19
|
+
retry_policy: T.nilable(Temporalio::RetryPolicy),
|
|
20
|
+
priority: Temporalio::Priority,
|
|
21
|
+
start_delay: T.nilable(Float)
|
|
22
|
+
).void
|
|
23
|
+
end
|
|
24
|
+
def initialize(
|
|
25
|
+
task_queue:,
|
|
26
|
+
schedule_to_close_timeout:,
|
|
27
|
+
schedule_to_start_timeout:,
|
|
28
|
+
start_to_close_timeout:,
|
|
29
|
+
heartbeat_timeout:,
|
|
30
|
+
retry_policy:,
|
|
31
|
+
priority:,
|
|
32
|
+
start_delay:
|
|
33
|
+
); end
|
|
34
|
+
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_reader :task_queue
|
|
37
|
+
|
|
38
|
+
sig { returns(T.nilable(Float)) }
|
|
39
|
+
attr_reader :schedule_to_close_timeout
|
|
40
|
+
|
|
41
|
+
sig { returns(T.nilable(Float)) }
|
|
42
|
+
attr_reader :schedule_to_start_timeout
|
|
43
|
+
|
|
44
|
+
sig { returns(T.nilable(Float)) }
|
|
45
|
+
attr_reader :start_to_close_timeout
|
|
46
|
+
|
|
47
|
+
sig { returns(T.nilable(Float)) }
|
|
48
|
+
attr_reader :heartbeat_timeout
|
|
49
|
+
|
|
50
|
+
sig { returns(T.nilable(Temporalio::RetryPolicy)) }
|
|
51
|
+
attr_reader :retry_policy
|
|
52
|
+
|
|
53
|
+
sig { returns(Temporalio::Priority) }
|
|
54
|
+
attr_reader :priority
|
|
55
|
+
|
|
56
|
+
sig { returns(T.nilable(Float)) }
|
|
57
|
+
attr_reader :start_delay
|
|
58
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# typed: true
|
|
2
2
|
|
|
3
3
|
class Temporalio::Client::ActivityHandle
|
|
4
|
+
UPDATABLE_OPTION_PATHS = T.let(T.unsafe(nil), T::Hash[Symbol, String])
|
|
5
|
+
|
|
4
6
|
sig do
|
|
5
7
|
params(
|
|
6
8
|
client: Temporalio::Client,
|
|
@@ -28,8 +30,22 @@ class Temporalio::Client::ActivityHandle
|
|
|
28
30
|
end
|
|
29
31
|
def result(result_hint: T.unsafe(nil), rpc_options: T.unsafe(nil)); end
|
|
30
32
|
|
|
31
|
-
sig
|
|
32
|
-
|
|
33
|
+
sig do
|
|
34
|
+
params(
|
|
35
|
+
include_input: T::Boolean,
|
|
36
|
+
include_outcome: T::Boolean,
|
|
37
|
+
include_heartbeat_details: T::Boolean,
|
|
38
|
+
include_last_failure: T::Boolean,
|
|
39
|
+
rpc_options: T.nilable(Temporalio::Client::RPCOptions)
|
|
40
|
+
).returns(Temporalio::Client::ActivityExecution::Description)
|
|
41
|
+
end
|
|
42
|
+
def describe(
|
|
43
|
+
include_input: T.unsafe(nil),
|
|
44
|
+
include_outcome: T.unsafe(nil),
|
|
45
|
+
include_heartbeat_details: T.unsafe(nil),
|
|
46
|
+
include_last_failure: T.unsafe(nil),
|
|
47
|
+
rpc_options: T.unsafe(nil)
|
|
48
|
+
); end
|
|
33
49
|
|
|
34
50
|
sig { params(reason: T.nilable(String), rpc_options: T.nilable(Temporalio::Client::RPCOptions)).void }
|
|
35
51
|
def cancel(reason = T.unsafe(nil), rpc_options: T.unsafe(nil)); end
|
|
@@ -37,6 +53,31 @@ class Temporalio::Client::ActivityHandle
|
|
|
37
53
|
sig { params(reason: T.nilable(String), rpc_options: T.nilable(Temporalio::Client::RPCOptions)).void }
|
|
38
54
|
def terminate(reason = T.unsafe(nil), rpc_options: T.unsafe(nil)); end
|
|
39
55
|
|
|
56
|
+
sig { params(reason: T.nilable(String), rpc_options: T.nilable(Temporalio::Client::RPCOptions)).void }
|
|
57
|
+
def pause(reason = T.unsafe(nil), rpc_options: T.unsafe(nil)); end
|
|
58
|
+
|
|
59
|
+
sig do
|
|
60
|
+
params(
|
|
61
|
+
reason: T.nilable(String),
|
|
62
|
+
jitter: T.nilable(Float),
|
|
63
|
+
rpc_options: T.nilable(Temporalio::Client::RPCOptions)
|
|
64
|
+
).void
|
|
65
|
+
end
|
|
66
|
+
def unpause(reason: T.unsafe(nil), jitter: T.unsafe(nil), rpc_options: T.unsafe(nil)); end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
params(
|
|
70
|
+
updates: Temporalio::Client::ActivityOptions::Update,
|
|
71
|
+
restore_original: T::Boolean,
|
|
72
|
+
rpc_options: T.nilable(Temporalio::Client::RPCOptions)
|
|
73
|
+
).returns(Temporalio::Client::ActivityExecutionOptions)
|
|
74
|
+
end
|
|
75
|
+
def update_options(
|
|
76
|
+
*updates,
|
|
77
|
+
restore_original: T.unsafe(nil),
|
|
78
|
+
rpc_options: T.unsafe(nil)
|
|
79
|
+
); end
|
|
80
|
+
|
|
40
81
|
private
|
|
41
82
|
|
|
42
83
|
sig do
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -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?
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: temporalio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.8.0
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Temporal Technologies Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-protobuf
|
|
@@ -139,9 +139,11 @@ files:
|
|
|
139
139
|
- lib/temporalio/client.rb
|
|
140
140
|
- lib/temporalio/client/activity_execution.rb
|
|
141
141
|
- lib/temporalio/client/activity_execution_count.rb
|
|
142
|
+
- lib/temporalio/client/activity_execution_options.rb
|
|
142
143
|
- lib/temporalio/client/activity_execution_status.rb
|
|
143
144
|
- lib/temporalio/client/activity_handle.rb
|
|
144
145
|
- lib/temporalio/client/activity_id_reference.rb
|
|
146
|
+
- lib/temporalio/client/activity_options.rb
|
|
145
147
|
- lib/temporalio/client/async_activity_handle.rb
|
|
146
148
|
- lib/temporalio/client/connection.rb
|
|
147
149
|
- lib/temporalio/client/connection/cloud_service.rb
|
|
@@ -363,9 +365,11 @@ files:
|
|
|
363
365
|
- rbi/temporalio/client.rbi
|
|
364
366
|
- rbi/temporalio/client/activity_execution.rbi
|
|
365
367
|
- rbi/temporalio/client/activity_execution_count.rbi
|
|
368
|
+
- rbi/temporalio/client/activity_execution_options.rbi
|
|
366
369
|
- rbi/temporalio/client/activity_execution_status.rbi
|
|
367
370
|
- rbi/temporalio/client/activity_handle.rbi
|
|
368
371
|
- rbi/temporalio/client/activity_id_reference.rbi
|
|
372
|
+
- rbi/temporalio/client/activity_options.rbi
|
|
369
373
|
- rbi/temporalio/client/async_activity_handle.rbi
|
|
370
374
|
- rbi/temporalio/client/connection.rbi
|
|
371
375
|
- rbi/temporalio/client/connection/cloud_service.rbi
|
|
@@ -582,9 +586,11 @@ files:
|
|
|
582
586
|
- sig/temporalio/client.rbs
|
|
583
587
|
- sig/temporalio/client/activity_execution.rbs
|
|
584
588
|
- sig/temporalio/client/activity_execution_count.rbs
|
|
589
|
+
- sig/temporalio/client/activity_execution_options.rbs
|
|
585
590
|
- sig/temporalio/client/activity_execution_status.rbs
|
|
586
591
|
- sig/temporalio/client/activity_handle.rbs
|
|
587
592
|
- sig/temporalio/client/activity_id_reference.rbs
|
|
593
|
+
- sig/temporalio/client/activity_options.rbs
|
|
588
594
|
- sig/temporalio/client/async_activity_handle.rbs
|
|
589
595
|
- sig/temporalio/client/connection.rbs
|
|
590
596
|
- sig/temporalio/client/connection/cloud_service.rbs
|