chalk-remote-call-python 1.10.12__tar.gz → 1.10.14__tar.gz
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.
- {chalk_remote_call_python-1.10.12/chalk_remote_call_python.egg-info → chalk_remote_call_python-1.10.14}/PKG-INFO +1 -1
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/Cargo.lock +4 -3
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/gen/chalk.runtime.v1.rs +28 -1
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/gen/descriptor.bin +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/Cargo.toml +2 -1
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/self_consumer.rs +88 -16
- chalk_remote_call_python-1.10.14/chalk_remote_call/_gen/chalk/runtime/v1/fnq_consumer_pb2.py +52 -0
- chalk_remote_call_python-1.10.14/chalk_remote_call/_gen/chalk/runtime/v1/remote_python_call_pb2.py +103 -0
- chalk_remote_call_python-1.10.14/chalk_remote_call/_version.py +1 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/servicer.py +7 -1
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/tracing.py +45 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14/chalk_remote_call_python.egg-info}/PKG-INFO +1 -1
- chalk_remote_call_python-1.10.12/chalk_remote_call/_gen/chalk/runtime/v1/fnq_consumer_pb2.py +0 -53
- chalk_remote_call_python-1.10.12/chalk_remote_call/_gen/chalk/runtime/v1/remote_python_call_pb2.py +0 -104
- chalk_remote_call_python-1.10.12/chalk_remote_call/_version.py +0 -1
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/MANIFEST.in +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/README.md +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/Cargo.toml +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/Cargo.toml +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/gen/chalk.auth.v1.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/gen/chalk.common.v1.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/gen/chalk.runtime.v1.tonic.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/gen/chalk.utils.v1.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-proto/src/lib.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/build.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/async_service.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/coalesce.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/fnq_client.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/lib.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/metrics.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/python_bridge.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/server.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/chalk-remote-call-server/src/service.rs +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk-remote-call-rs/rust-toolchain.toml +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/__main__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/auth/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/auth/v1/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/auth/v1/permissions_pb2.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/auth/v1/permissions_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/common/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/common/v1/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/common/v1/chalk_error_pb2.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/common/v1/chalk_error_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/runtime/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/runtime/v1/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/runtime/v1/fnq_consumer_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/runtime/v1/remote_python_call_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/__init__.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/encoding_pb2.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/encoding_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/field_change_pb2.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/field_change_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/large_pb2.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/large_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/sensitive_pb2.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_gen/chalk/utils/v1/sensitive_pb2_grpc.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_native.pyi +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/arrow_utils.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/cli.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/errors.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/handler_loader.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/input_transform.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/logging.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/server.py +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call_python.egg-info/SOURCES.txt +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call_python.egg-info/dependency_links.txt +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call_python.egg-info/entry_points.txt +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call_python.egg-info/requires.txt +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call_python.egg-info/top_level.txt +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/pyproject.toml +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/setup.cfg +0 -0
- {chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/setup.py +0 -0
|
@@ -511,7 +511,7 @@ dependencies = [
|
|
|
511
511
|
[[package]]
|
|
512
512
|
name = "chalk-queue"
|
|
513
513
|
version = "0.0.0"
|
|
514
|
-
source = "git+https://github.com/chalk-ai/chalk-private.git?rev=
|
|
514
|
+
source = "git+https://github.com/chalk-ai/chalk-private.git?rev=31fb37c162671d3a838a7c33e717a0a425466790#31fb37c162671d3a838a7c33e717a0a425466790"
|
|
515
515
|
dependencies = [
|
|
516
516
|
"base64 0.22.1",
|
|
517
517
|
"redis",
|
|
@@ -547,6 +547,7 @@ dependencies = [
|
|
|
547
547
|
"dashmap 5.5.3",
|
|
548
548
|
"futures-util",
|
|
549
549
|
"prost 0.13.5",
|
|
550
|
+
"prost-types 0.13.5",
|
|
550
551
|
"pyo3",
|
|
551
552
|
"pyo3-build-config",
|
|
552
553
|
"redis",
|
|
@@ -1476,7 +1477,7 @@ dependencies = [
|
|
|
1476
1477
|
"libc",
|
|
1477
1478
|
"percent-encoding",
|
|
1478
1479
|
"pin-project-lite",
|
|
1479
|
-
"socket2 0.
|
|
1480
|
+
"socket2 0.5.10",
|
|
1480
1481
|
"tokio",
|
|
1481
1482
|
"tower-service",
|
|
1482
1483
|
"tracing",
|
|
@@ -3163,7 +3164,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
3163
3164
|
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
|
3164
3165
|
dependencies = [
|
|
3165
3166
|
"fastrand",
|
|
3166
|
-
"getrandom 0.4
|
|
3167
|
+
"getrandom 0.3.4",
|
|
3167
3168
|
"once_cell",
|
|
3168
3169
|
"rustix 1.1.4",
|
|
3169
3170
|
"windows-sys 0.61.2",
|
|
@@ -49,6 +49,10 @@ pub struct EnqueueRemoteCallRequest {
|
|
|
49
49
|
/// The arguments for the call.
|
|
50
50
|
#[prost(message, optional, tag="2")]
|
|
51
51
|
pub args: ::core::option::Option<RemoteCallArgs>,
|
|
52
|
+
/// Overrides the deployed retry count, excluding the initial attempt. Absence
|
|
53
|
+
/// inherits the deployed policy; zero disables retries. Requires Stream workers.
|
|
54
|
+
#[prost(int32, optional, tag="3")]
|
|
55
|
+
pub max_retries: ::core::option::Option<i32>,
|
|
52
56
|
}
|
|
53
57
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
54
58
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
@@ -69,6 +73,10 @@ pub struct OpenRemoteCallBatch {
|
|
|
69
73
|
pub batch_id: ::prost::alloc::string::String,
|
|
70
74
|
#[prost(string, tag="3")]
|
|
71
75
|
pub result_cursor: ::prost::alloc::string::String,
|
|
76
|
+
/// Retry count for every row, excluding the initial attempt. Absence inherits
|
|
77
|
+
/// the deployed policy. Resuming a batch preserves its admitted retry policy.
|
|
78
|
+
#[prost(int32, optional, tag="4")]
|
|
79
|
+
pub max_retries: ::core::option::Option<i32>,
|
|
72
80
|
}
|
|
73
81
|
/// A transport chunk containing consecutive input rows. The server assigns one
|
|
74
82
|
/// call ID and enqueues one independently schedulable work item per row.
|
|
@@ -291,6 +299,22 @@ pub struct FunctionCallInfo {
|
|
|
291
299
|
/// The W3C traceparent header value propagated with this call, if any.
|
|
292
300
|
#[prost(string, tag="6")]
|
|
293
301
|
pub trace_id: ::prost::alloc::string::String,
|
|
302
|
+
/// Authorized worker dispatches, excluding exhaustion-only deliveries. A worker
|
|
303
|
+
/// can stop before entering the handler. Absent for older retained records.
|
|
304
|
+
#[prost(uint64, optional, tag="7")]
|
|
305
|
+
pub attempt_count: ::core::option::Option<u64>,
|
|
306
|
+
/// Effective retry count plus the initial attempt. Absent for older records.
|
|
307
|
+
#[prost(uint64, optional, tag="8")]
|
|
308
|
+
pub max_attempts: ::core::option::Option<u64>,
|
|
309
|
+
/// When the latest authorized attempt was dispatched to a worker.
|
|
310
|
+
#[prost(message, optional, tag="9")]
|
|
311
|
+
pub last_attempt_at: ::core::option::Option<::prost_types::Timestamp>,
|
|
312
|
+
/// Initial Stream queue wait; absent before delivery or when unavailable.
|
|
313
|
+
#[prost(message, optional, tag="11")]
|
|
314
|
+
pub queue_duration: ::core::option::Option<::prost_types::Duration>,
|
|
315
|
+
/// Final-attempt worker processing time, including batching wait; matches the call duration metric.
|
|
316
|
+
#[prost(message, optional, tag="12")]
|
|
317
|
+
pub call_duration: ::core::option::Option<::prost_types::Duration>,
|
|
294
318
|
}
|
|
295
319
|
/// Request the most recent calls to a given function.
|
|
296
320
|
#[allow(clippy::derive_partial_eq_without_eq)]
|
|
@@ -476,6 +500,9 @@ pub struct ReportResultsRequest {
|
|
|
476
500
|
/// Links this execution's trace to the call's history.
|
|
477
501
|
#[prost(string, tag="3")]
|
|
478
502
|
pub processing_trace_id: ::prost::alloc::string::String,
|
|
503
|
+
/// Worker-measured call duration; present only on terminal end/error reports.
|
|
504
|
+
#[prost(message, optional, tag="8")]
|
|
505
|
+
pub call_duration: ::core::option::Option<::prost_types::Duration>,
|
|
479
506
|
#[prost(oneof="report_results_request::Result", tags="4, 5, 6, 7")]
|
|
480
507
|
pub result: ::core::option::Option<report_results_request::Result>,
|
|
481
508
|
}
|
|
@@ -503,4 +530,4 @@ pub mod report_results_request {
|
|
|
503
530
|
pub struct ReportResultsResponse {
|
|
504
531
|
}
|
|
505
532
|
include!("chalk.runtime.v1.tonic.rs");
|
|
506
|
-
// @@protoc_insertion_point(module)
|
|
533
|
+
// @@protoc_insertion_point(module)
|
|
Binary file
|
|
@@ -22,6 +22,7 @@ tonic = { version = "0.12", features = ["tls", "tls-native-roots"] }
|
|
|
22
22
|
tonic-health = "0.12"
|
|
23
23
|
tonic-reflection = "0.12"
|
|
24
24
|
prost = "0.13"
|
|
25
|
+
prost-types = "0.13"
|
|
25
26
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "signal", "time", "fs"] }
|
|
26
27
|
tokio-stream = "0.1"
|
|
27
28
|
arrow = { version = "54", default-features = false, features = ["ipc"] }
|
|
@@ -45,7 +46,7 @@ futures-util = "0.3"
|
|
|
45
46
|
# `[patch.crates-io]` here it builds against vanilla crates.io redis (it only
|
|
46
47
|
# uses standard APIs). Metrics and StatsD share a revision so their client types agree.
|
|
47
48
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
48
|
-
chalk-queue = { git = "https://github.com/chalk-ai/chalk-private.git", rev = "
|
|
49
|
+
chalk-queue = { git = "https://github.com/chalk-ai/chalk-private.git", rev = "31fb37c162671d3a838a7c33e717a0a425466790" }
|
|
49
50
|
chalk_metrics = { git = "https://github.com/chalk-ai/chalk-private.git", rev = "a0f8932ec10d3b8340af3e98cf63b800d60b4926" }
|
|
50
51
|
chalk_statsd = { git = "https://github.com/chalk-ai/chalk-private.git", rev = "a0f8932ec10d3b8340af3e98cf63b800d60b4926" }
|
|
51
52
|
|
|
@@ -245,11 +245,13 @@ enum CallOutput {
|
|
|
245
245
|
conn: ConnectionManager,
|
|
246
246
|
destination: ResultDestination,
|
|
247
247
|
call_id: Uuid,
|
|
248
|
+
call_duration: Option<Duration>,
|
|
248
249
|
},
|
|
249
250
|
Fnq {
|
|
250
251
|
client: crate::fnq_client::FnqClient,
|
|
251
252
|
handle: String,
|
|
252
253
|
trace_id: String,
|
|
254
|
+
call_duration: Option<Duration>,
|
|
253
255
|
},
|
|
254
256
|
}
|
|
255
257
|
|
|
@@ -265,9 +267,18 @@ impl CallOutput {
|
|
|
265
267
|
conn: conn.clone(),
|
|
266
268
|
destination: ResultDestination::for_call(queue, work, call_id),
|
|
267
269
|
call_id,
|
|
270
|
+
call_duration: None,
|
|
268
271
|
})
|
|
269
272
|
}
|
|
270
273
|
|
|
274
|
+
fn record_duration(&mut self, duration: Duration) {
|
|
275
|
+
match self {
|
|
276
|
+
Self::Redis { call_duration, .. } | Self::Fnq { call_duration, .. } => {
|
|
277
|
+
*call_duration = Some(duration);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
271
282
|
async fn begin(&mut self, trace_id: &str) {
|
|
272
283
|
match self {
|
|
273
284
|
Self::Redis { queue, call_id, .. } => {
|
|
@@ -280,9 +291,15 @@ impl CallOutput {
|
|
|
280
291
|
}
|
|
281
292
|
|
|
282
293
|
async fn complete(&self, status: &str, summary: &str, trace_id: Option<String>) {
|
|
283
|
-
if let Self::Redis {
|
|
294
|
+
if let Self::Redis {
|
|
295
|
+
queue,
|
|
296
|
+
call_id,
|
|
297
|
+
call_duration,
|
|
298
|
+
..
|
|
299
|
+
} = self
|
|
300
|
+
{
|
|
284
301
|
let _ = queue
|
|
285
|
-
.
|
|
302
|
+
.complete_status_with_duration(*call_id, status, summary, trace_id, *call_duration)
|
|
286
303
|
.await;
|
|
287
304
|
}
|
|
288
305
|
}
|
|
@@ -292,14 +309,24 @@ impl CallOutput {
|
|
|
292
309
|
client,
|
|
293
310
|
handle,
|
|
294
311
|
trace_id,
|
|
312
|
+
call_duration,
|
|
295
313
|
} = self
|
|
296
314
|
{
|
|
297
315
|
client
|
|
298
316
|
.report(ReportResultsRequest {
|
|
299
317
|
work_handle: handle.clone(),
|
|
300
318
|
sequence,
|
|
301
|
-
result: Some(result),
|
|
302
319
|
processing_trace_id: trace_id.clone(),
|
|
320
|
+
call_duration: if matches!(result, ResultEvent::End(_) | ResultEvent::Error(_))
|
|
321
|
+
{
|
|
322
|
+
call_duration.map(|duration| prost_types::Duration {
|
|
323
|
+
seconds: duration.as_secs() as i64,
|
|
324
|
+
nanos: duration.subsec_nanos() as i32,
|
|
325
|
+
})
|
|
326
|
+
} else {
|
|
327
|
+
None
|
|
328
|
+
},
|
|
329
|
+
result: Some(result),
|
|
303
330
|
})
|
|
304
331
|
.await?;
|
|
305
332
|
}
|
|
@@ -627,6 +654,7 @@ async fn run_fnq(
|
|
|
627
654
|
client,
|
|
628
655
|
handle: handle.clone(),
|
|
629
656
|
trace_id: String::new(),
|
|
657
|
+
call_duration: None,
|
|
630
658
|
};
|
|
631
659
|
let call = delivery.call.ok_or("Fnq response missing call")?;
|
|
632
660
|
let work = QueuedCall {
|
|
@@ -638,6 +666,7 @@ async fn run_fnq(
|
|
|
638
666
|
},
|
|
639
667
|
metadata: chalk_queue::types::CallMetadata {
|
|
640
668
|
otel_headers: delivery.metadata,
|
|
669
|
+
..Default::default()
|
|
641
670
|
},
|
|
642
671
|
result_ttl_seconds: 86400,
|
|
643
672
|
batch_result: None,
|
|
@@ -911,6 +940,28 @@ async fn run_stream_dispatch_loop(
|
|
|
911
940
|
}
|
|
912
941
|
}
|
|
913
942
|
|
|
943
|
+
fn attach_queue_wait_timing(work: &mut QueuedCall, attempt: u64) {
|
|
944
|
+
if attempt != 1 || !work.metadata.otel_headers.contains_key("traceparent") {
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
let Some(enqueued) = work.metadata.enqueued_at_unix_millis else {
|
|
948
|
+
return;
|
|
949
|
+
};
|
|
950
|
+
let Ok(dequeued) = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH) else {
|
|
951
|
+
return;
|
|
952
|
+
};
|
|
953
|
+
work.metadata.otel_headers.extend([
|
|
954
|
+
(
|
|
955
|
+
"x-chalk-internal-enqueued-at-ms".into(),
|
|
956
|
+
enqueued.to_string(),
|
|
957
|
+
),
|
|
958
|
+
(
|
|
959
|
+
"x-chalk-internal-dequeued-at-ns".into(),
|
|
960
|
+
dequeued.as_nanos().to_string(),
|
|
961
|
+
),
|
|
962
|
+
]);
|
|
963
|
+
}
|
|
964
|
+
|
|
914
965
|
#[allow(clippy::too_many_arguments)]
|
|
915
966
|
fn dispatch_delivery(
|
|
916
967
|
queue: FunctionQueue,
|
|
@@ -969,7 +1020,7 @@ async fn run_one_call(
|
|
|
969
1020
|
flush_timeout: Duration,
|
|
970
1021
|
metrics: Option<Arc<CallMetrics>>,
|
|
971
1022
|
) {
|
|
972
|
-
let attempt = match input_queue.
|
|
1023
|
+
let attempt = match input_queue.prepare_delivery(&delivery).await {
|
|
973
1024
|
Ok(attempt) => attempt,
|
|
974
1025
|
Err(error) => {
|
|
975
1026
|
error!(call_id = %delivery.call.call_id, %error, "failed to resolve delivery attempt");
|
|
@@ -986,7 +1037,7 @@ async fn run_one_call(
|
|
|
986
1037
|
}
|
|
987
1038
|
};
|
|
988
1039
|
let DequeuedCall {
|
|
989
|
-
call: work,
|
|
1040
|
+
call: mut work,
|
|
990
1041
|
receipt,
|
|
991
1042
|
} = delivery;
|
|
992
1043
|
let call_id = work.call_id.clone();
|
|
@@ -996,6 +1047,7 @@ async fn run_one_call(
|
|
|
996
1047
|
max_attempts,
|
|
997
1048
|
} => {
|
|
998
1049
|
debug!(%call_id, attempt, max_attempts, "executing queued call attempt");
|
|
1050
|
+
attach_queue_wait_timing(&mut work, attempt);
|
|
999
1051
|
attempt == max_attempts
|
|
1000
1052
|
}
|
|
1001
1053
|
DeliveryAttempt::Exhausted {
|
|
@@ -1135,7 +1187,7 @@ async fn run_one_coalesced_call(
|
|
|
1135
1187
|
live_calls: LiveCalls,
|
|
1136
1188
|
metrics: Option<Arc<CallMetrics>>,
|
|
1137
1189
|
) {
|
|
1138
|
-
let attempt = match input_queue.
|
|
1190
|
+
let attempt = match input_queue.prepare_delivery(&delivery).await {
|
|
1139
1191
|
Ok(attempt) => attempt,
|
|
1140
1192
|
Err(error) => {
|
|
1141
1193
|
error!(call_id = %delivery.call.call_id, %error, "failed to resolve delivery attempt");
|
|
@@ -1152,7 +1204,7 @@ async fn run_one_coalesced_call(
|
|
|
1152
1204
|
}
|
|
1153
1205
|
};
|
|
1154
1206
|
let DequeuedCall {
|
|
1155
|
-
call: work,
|
|
1207
|
+
call: mut work,
|
|
1156
1208
|
receipt,
|
|
1157
1209
|
} = delivery;
|
|
1158
1210
|
let call_id = work.call_id.clone();
|
|
@@ -1162,6 +1214,7 @@ async fn run_one_coalesced_call(
|
|
|
1162
1214
|
max_attempts,
|
|
1163
1215
|
} => {
|
|
1164
1216
|
debug!(%call_id, attempt, max_attempts, "executing coalesced queued call attempt");
|
|
1217
|
+
attach_queue_wait_timing(&mut work, attempt);
|
|
1165
1218
|
attempt == max_attempts
|
|
1166
1219
|
}
|
|
1167
1220
|
DeliveryAttempt::Exhausted {
|
|
@@ -1275,14 +1328,10 @@ async fn coalesced_execute_and_write(
|
|
|
1275
1328
|
// Record metrics once the batch has produced this caller's result, before
|
|
1276
1329
|
// stream writes below — parity with the streaming path.
|
|
1277
1330
|
let success = matches!(response, Some(Ok(_)));
|
|
1331
|
+
let elapsed = started.elapsed();
|
|
1332
|
+
output.record_duration(elapsed);
|
|
1278
1333
|
if let Some(p) = metrics {
|
|
1279
|
-
crate::metrics::record_completed_call(
|
|
1280
|
-
p,
|
|
1281
|
-
&function_name,
|
|
1282
|
-
success,
|
|
1283
|
-
started.elapsed(),
|
|
1284
|
-
Mode::Async,
|
|
1285
|
-
);
|
|
1334
|
+
crate::metrics::record_completed_call(p, &function_name, success, elapsed, Mode::Async);
|
|
1286
1335
|
}
|
|
1287
1336
|
|
|
1288
1337
|
match response {
|
|
@@ -1386,7 +1435,7 @@ async fn execute_and_write(
|
|
|
1386
1435
|
let mut flushed: usize = 0;
|
|
1387
1436
|
// A retry must not duplicate generator chunks. Retry-enabled calls buffer
|
|
1388
1437
|
// output until the handler succeeds or reaches its final attempt.
|
|
1389
|
-
let buffer_until_terminal = work.max_retries.
|
|
1438
|
+
let buffer_until_terminal = work.max_retries.unwrap_or(0) > 0;
|
|
1390
1439
|
|
|
1391
1440
|
// Completion is driven by the handler future resolving, NOT by the buffer
|
|
1392
1441
|
// emitter being torn down — so a handler that pins its emitter (e.g. via a
|
|
@@ -1417,12 +1466,14 @@ async fn execute_and_write(
|
|
|
1417
1466
|
// Emit metrics as soon as execution finishes, before result-stream writes,
|
|
1418
1467
|
// so every executed call is recorded regardless of downstream Redis write
|
|
1419
1468
|
// failure. Mirrors the catalog consumer's per-call emission.
|
|
1469
|
+
let elapsed = started.elapsed();
|
|
1470
|
+
output.record_duration(elapsed);
|
|
1420
1471
|
if let Some(p) = metrics {
|
|
1421
1472
|
crate::metrics::record_completed_call(
|
|
1422
1473
|
p,
|
|
1423
1474
|
&function_name,
|
|
1424
1475
|
result.is_ok(),
|
|
1425
|
-
|
|
1476
|
+
elapsed,
|
|
1426
1477
|
Mode::Async,
|
|
1427
1478
|
);
|
|
1428
1479
|
}
|
|
@@ -1587,6 +1638,27 @@ fn spawn_renewer(
|
|
|
1587
1638
|
|
|
1588
1639
|
#[cfg(test)]
|
|
1589
1640
|
mod tests {
|
|
1641
|
+
#[test]
|
|
1642
|
+
fn queue_wait_timing_is_only_attached_to_the_initial_attempt() {
|
|
1643
|
+
let mut work: chalk_queue::types::QueuedCall = serde_json::from_value(serde_json::json!({
|
|
1644
|
+
"call_id": "call", "call": {"name": "embed", "feather_stream": ""},
|
|
1645
|
+
"metadata": {"otel_headers": {"traceparent": "parent"}, "enqueued_at_unix_millis": 1000}
|
|
1646
|
+
}))
|
|
1647
|
+
.unwrap();
|
|
1648
|
+
super::attach_queue_wait_timing(&mut work, 2);
|
|
1649
|
+
assert_eq!(work.metadata.otel_headers.len(), 1);
|
|
1650
|
+
super::attach_queue_wait_timing(&mut work, 1);
|
|
1651
|
+
assert_eq!(
|
|
1652
|
+
work.metadata.otel_headers["x-chalk-internal-enqueued-at-ms"],
|
|
1653
|
+
"1000"
|
|
1654
|
+
);
|
|
1655
|
+
assert!(work
|
|
1656
|
+
.metadata
|
|
1657
|
+
.otel_headers
|
|
1658
|
+
.contains_key("x-chalk-internal-dequeued-at-ns"));
|
|
1659
|
+
assert_eq!(work.metadata.otel_headers["traceparent"], "parent");
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1590
1662
|
use super::*;
|
|
1591
1663
|
|
|
1592
1664
|
static ENV_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: chalk/runtime/v1/fnq_consumer.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from chalk_remote_call._gen.chalk.common.v1 import chalk_error_pb2 as chalk_dot_common_dot_v1_dot_chalk__error__pb2
|
|
15
|
+
from chalk_remote_call._gen.chalk.runtime.v1 import remote_python_call_pb2 as chalk_dot_runtime_dot_v1_dot_remote__python__call__pb2
|
|
16
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
17
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
18
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#chalk/runtime/v1/fnq_consumer.proto\x12\x10\x63halk.runtime.v1\x1a!chalk/common/v1/chalk_error.proto\x1a)chalk/runtime/v1/remote_python_call.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"\xf3\x01\n\x12\x41\x63quireWorkRequest\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1b\n\tmax_calls\x18\x03 \x01(\rR\x08maxCalls\x12%\n\x0emax_concurrent\x18\x04 \x01(\rR\rmaxConcurrent\x12\x34\n\x16lease_duration_seconds\x18\x05 \x01(\rR\x14leaseDurationSeconds\x12\x1f\n\x0b\x63onsumer_id\x18\x06 \x01(\tR\nconsumerId\"\x83\x03\n\x07\x46nqWork\x12\x1f\n\x0bwork_handle\x18\x01 \x01(\tR\nworkHandle\x12\x17\n\x07\x63\x61ll_id\x18\x02 \x01(\tR\x06\x63\x61llId\x12\x39\n\x04\x63\x61ll\x18\x03 \x01(\x0b\x32%.chalk.runtime.v1.CallFunctionRequestR\x04\x63\x61ll\x12\x43\n\x08metadata\x18\x04 \x03(\x0b\x32\'.chalk.runtime.v1.FnqWork.MetadataEntryR\x08metadata\x12\x18\n\x07\x61ttempt\x18\x05 \x01(\x04R\x07\x61ttempt\x12!\n\x0cmax_attempts\x18\x06 \x01(\x04R\x0bmaxAttempts\x12\x44\n\x10lease_expires_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0eleaseExpiresAt\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"D\n\x13\x41\x63quireWorkResponse\x12-\n\x04work\x18\x01 \x01(\x0b\x32\x19.chalk.runtime.v1.FnqWorkR\x04work\"5\n\x10RenewWorkRequest\x12!\n\x0cwork_handles\x18\x01 \x03(\tR\x0bworkHandles\"\x81\x02\n\x11RenewWorkResponse\x12*\n\x11lost_work_handles\x18\x01 \x03(\tR\x0flostWorkHandles\x12\x61\n\x10lease_expires_at\x18\x02 \x03(\x0b\x32\x37.chalk.runtime.v1.RenewWorkResponse.LeaseExpiresAtEntryR\x0eleaseExpiresAt\x1a]\n\x13LeaseExpiresAtEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x05value:\x02\x38\x01\"\xfa\x02\n\x14ReportResultsRequest\x12\x1f\n\x0bwork_handle\x18\x01 \x01(\tR\nworkHandle\x12\x1a\n\x08sequence\x18\x02 \x01(\x04R\x08sequence\x12.\n\x13processing_trace_id\x18\x03 \x01(\tR\x11processingTraceId\x12\x16\n\x05\x63hunk\x18\x04 \x01(\x0cH\x00R\x05\x63hunk\x12*\n\x03\x65nd\x18\x05 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x03\x65nd\x12\x37\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1f.chalk.common.v1.ChalkExceptionH\x00R\x05\x65rror\x12.\n\x05retry\x18\x07 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x05retry\x12>\n\rcall_duration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0c\x63\x61llDurationB\x08\n\x06result\"\x17\n\x15ReportResultsResponse2\xaa\x02\n\x12\x46nqConsumerService\x12\\\n\x0b\x41\x63quireWork\x12$.chalk.runtime.v1.AcquireWorkRequest\x1a%.chalk.runtime.v1.AcquireWorkResponse0\x01\x12T\n\tRenewWork\x12\".chalk.runtime.v1.RenewWorkRequest\x1a#.chalk.runtime.v1.RenewWorkResponse\x12`\n\rReportResults\x12&.chalk.runtime.v1.ReportResultsRequest\x1a\'.chalk.runtime.v1.ReportResultsResponseb\x06proto3')
|
|
22
|
+
|
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chalk.runtime.v1.fnq_consumer_pb2', globals())
|
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
_FNQWORK_METADATAENTRY._options = None
|
|
29
|
+
_FNQWORK_METADATAENTRY._serialized_options = b'8\001'
|
|
30
|
+
_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY._options = None
|
|
31
|
+
_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY._serialized_options = b'8\001'
|
|
32
|
+
_ACQUIREWORKREQUEST._serialized_start=230
|
|
33
|
+
_ACQUIREWORKREQUEST._serialized_end=473
|
|
34
|
+
_FNQWORK._serialized_start=476
|
|
35
|
+
_FNQWORK._serialized_end=863
|
|
36
|
+
_FNQWORK_METADATAENTRY._serialized_start=804
|
|
37
|
+
_FNQWORK_METADATAENTRY._serialized_end=863
|
|
38
|
+
_ACQUIREWORKRESPONSE._serialized_start=865
|
|
39
|
+
_ACQUIREWORKRESPONSE._serialized_end=933
|
|
40
|
+
_RENEWWORKREQUEST._serialized_start=935
|
|
41
|
+
_RENEWWORKREQUEST._serialized_end=988
|
|
42
|
+
_RENEWWORKRESPONSE._serialized_start=991
|
|
43
|
+
_RENEWWORKRESPONSE._serialized_end=1248
|
|
44
|
+
_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY._serialized_start=1155
|
|
45
|
+
_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY._serialized_end=1248
|
|
46
|
+
_REPORTRESULTSREQUEST._serialized_start=1251
|
|
47
|
+
_REPORTRESULTSREQUEST._serialized_end=1629
|
|
48
|
+
_REPORTRESULTSRESPONSE._serialized_start=1631
|
|
49
|
+
_REPORTRESULTSRESPONSE._serialized_end=1654
|
|
50
|
+
_FNQCONSUMERSERVICE._serialized_start=1657
|
|
51
|
+
_FNQCONSUMERSERVICE._serialized_end=1955
|
|
52
|
+
# @@protoc_insertion_point(module_scope)
|
chalk_remote_call_python-1.10.14/chalk_remote_call/_gen/chalk/runtime/v1/remote_python_call_pb2.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: chalk/runtime/v1/remote_python_call.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf.internal import builder as _builder
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from chalk_remote_call._gen.chalk.auth.v1 import permissions_pb2 as chalk_dot_auth_dot_v1_dot_permissions__pb2
|
|
15
|
+
from chalk_remote_call._gen.chalk.common.v1 import chalk_error_pb2 as chalk_dot_common_dot_v1_dot_chalk__error__pb2
|
|
16
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
17
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)chalk/runtime/v1/remote_python_call.proto\x12\x10\x63halk.runtime.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a!chalk/common/v1/chalk_error.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"P\n\x13\x43\x61llFunctionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12%\n\x0e\x66\x65\x61ther_stream\x18\x02 \x01(\x0cR\rfeatherStream\"=\n\x14\x43\x61llFunctionResponse\x12%\n\x0e\x66\x65\x61ther_stream\x18\x01 \x01(\x0cR\rfeatherStream\"m\n\x0eRemoteCallArgs\x12%\n\rfeather_bytes\x18\x01 \x01(\x0cH\x00R\x0c\x66\x65\x61therBytes\x12,\n\x11storage_object_id\x18\x02 \x01(\tH\x00R\x0fstorageObjectIdB\x06\n\x04\x61rgs\"\x9a\x01\n\x18\x45nqueueRemoteCallRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x01(\x0b\x32 .chalk.runtime.v1.RemoteCallArgsR\x04\x61rgs\x12$\n\x0bmax_retries\x18\x03 \x01(\x05H\x00R\nmaxRetries\x88\x01\x01\x42\x0e\n\x0c_max_retries\"4\n\x19\x45nqueueRemoteCallResponse\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\"\x9f\x01\n\x13OpenRemoteCallBatch\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n\x08\x62\x61tch_id\x18\x02 \x01(\tR\x07\x62\x61tchId\x12#\n\rresult_cursor\x18\x03 \x01(\tR\x0cresultCursor\x12$\n\x0bmax_retries\x18\x04 \x01(\x05H\x00R\nmaxRetries\x88\x01\x01\x42\x0e\n\x0c_max_retries\"\x9b\x01\n\x1aSubmitRemoteCallBatchChunk\x12\x1f\n\x0b\x63hunk_index\x18\x01 \x01(\x04R\nchunkIndex\x12&\n\x0f\x66irst_row_index\x18\x02 \x01(\x04R\rfirstRowIndex\x12\x34\n\x04\x61rgs\x18\x03 \x01(\x0b\x32 .chalk.runtime.v1.RemoteCallArgsR\x04\x61rgs\"!\n\x1f\x46inishRemoteCallBatchSubmission\"/\n\x15\x43\x61ncelRemoteCallBatch\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\"\xbe\x02\n\x1cStreamRemoteCallBatchRequest\x12;\n\x04open\x18\x01 \x01(\x0b\x32%.chalk.runtime.v1.OpenRemoteCallBatchH\x00R\x04open\x12\x46\n\x06submit\x18\x02 \x01(\x0b\x32,.chalk.runtime.v1.SubmitRemoteCallBatchChunkH\x00R\x06submit\x12K\n\x06\x66inish\x18\x03 \x01(\x0b\x32\x31.chalk.runtime.v1.FinishRemoteCallBatchSubmissionH\x00R\x06\x66inish\x12\x41\n\x06\x63\x61ncel\x18\x04 \x01(\x0b\x32\'.chalk.runtime.v1.CancelRemoteCallBatchH\x00R\x06\x63\x61ncelB\t\n\x07request\"\xb3\x01\n\x15RemoteCallBatchOpened\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12/\n\x13submission_finished\x18\x02 \x01(\x08R\x12submissionFinished\x12(\n\x10next_chunk_index\x18\x03 \x01(\x04R\x0enextChunkIndex\x12$\n\x0enext_row_index\x18\x04 \x01(\x04R\x0cnextRowIndex\"K\n\x13RemoteCallBatchCall\x12\x1b\n\trow_index\x18\x01 \x01(\x04R\x08rowIndex\x12\x17\n\x07\x63\x61ll_id\x18\x02 \x01(\tR\x06\x63\x61llId\"|\n\x1cRemoteCallBatchChunkAccepted\x12\x1f\n\x0b\x63hunk_index\x18\x01 \x01(\x04R\nchunkIndex\x12;\n\x05\x63\x61lls\x18\x02 \x03(\x0b\x32%.chalk.runtime.v1.RemoteCallBatchCallR\x05\x63\x61lls\"\x9a\x02\n\x15RemoteCallBatchResult\x12\x1b\n\trow_index\x18\x01 \x01(\x04R\x08rowIndex\x12\x17\n\x07\x63\x61ll_id\x18\x02 \x01(\tR\x06\x63\x61llId\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x12:\n\x06status\x18\x04 \x01(\x0e\x32\".chalk.runtime.v1.RemoteCallStatusR\x06status\x12>\n\x06result\x18\x05 \x01(\x0b\x32&.chalk.runtime.v1.CallFunctionResponseR\x06result\x12\x33\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors\"w\n\x1aRemoteCallBatchResultChunk\x12\x41\n\x07results\x18\x01 \x03(\x0b\x32\'.chalk.runtime.v1.RemoteCallBatchResultR\x07results\x12\x16\n\x06\x63ursor\x18\x02 \x01(\tR\x06\x63ursor\"\x87\x01\n\x18RemoteCallBatchCompleted\x12\x1f\n\x0btotal_calls\x18\x01 \x01(\x04R\ntotalCalls\x12\'\n\x0f\x63ompleted_calls\x18\x02 \x01(\x04R\x0e\x63ompletedCalls\x12!\n\x0c\x66\x61iled_calls\x18\x03 \x01(\x04R\x0b\x66\x61iledCalls\"\xd2\x02\n\x1dStreamRemoteCallBatchResponse\x12\x41\n\x06opened\x18\x01 \x01(\x0b\x32\'.chalk.runtime.v1.RemoteCallBatchOpenedH\x00R\x06opened\x12L\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32..chalk.runtime.v1.RemoteCallBatchChunkAcceptedH\x00R\x08\x61\x63\x63\x65pted\x12H\n\x07results\x18\x03 \x01(\x0b\x32,.chalk.runtime.v1.RemoteCallBatchResultChunkH\x00R\x07results\x12J\n\tcompleted\x18\x04 \x01(\x0b\x32*.chalk.runtime.v1.RemoteCallBatchCompletedH\x00R\tcompletedB\n\n\x08response\"H\n\x15PollRemoteCallRequest\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\x12\x16\n\x06\x63ursor\x18\x02 \x01(\tR\x06\x63ursor\"\xe3\x01\n\x16PollRemoteCallResponse\x12:\n\x06status\x18\x01 \x01(\x0e\x32\".chalk.runtime.v1.RemoteCallStatusR\x06status\x12@\n\x07results\x18\x02 \x03(\x0b\x32&.chalk.runtime.v1.CallFunctionResponseR\x07results\x12\x16\n\x06\x63ursor\x18\x03 \x01(\tR\x06\x63ursor\x12\x33\n\x06\x65rrors\x18\x04 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors\"Y\n\x11PurgeQueueRequest\x12%\n\rfunction_name\x18\x01 \x01(\tH\x00R\x0c\x66unctionName\x12\x12\n\x03\x61ll\x18\x02 \x01(\x08H\x00R\x03\x61llB\t\n\x07request\"\xdc\x01\n\x12PurgeQueueResponse\x12{\n\x19items_removed_by_function\x18\x01 \x03(\x0b\x32@.chalk.runtime.v1.PurgeQueueResponse.ItemsRemovedByFunctionEntryR\x16itemsRemovedByFunction\x1aI\n\x1bItemsRemovedByFunctionEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x04R\x05value:\x02\x38\x01\"\xc6\x04\n\x10\x46unctionCallInfo\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\x12#\n\rfunction_name\x18\x02 \x01(\tR\x0c\x66unctionName\x12;\n\x0b\x65nqueued_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nenqueuedAt\x12:\n\x06status\x18\x04 \x01(\x0e\x32\".chalk.runtime.v1.RemoteCallStatusR\x06status\x12%\n\x0eresult_summary\x18\x05 \x01(\tR\rresultSummary\x12\x19\n\x08trace_id\x18\x06 \x01(\tR\x07traceId\x12(\n\rattempt_count\x18\x07 \x01(\x04H\x00R\x0c\x61ttemptCount\x88\x01\x01\x12&\n\x0cmax_attempts\x18\x08 \x01(\x04H\x01R\x0bmaxAttempts\x88\x01\x01\x12\x42\n\x0flast_attempt_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampR\rlastAttemptAt\x12@\n\x0equeue_duration\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationR\rqueueDuration\x12>\n\rcall_duration\x18\x0c \x01(\x0b\x32\x19.google.protobuf.DurationR\x0c\x63\x61llDurationB\x10\n\x0e_attempt_countB\x0f\n\r_max_attempts\"q\n\x15GetRecentCallsRequest\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken\"z\n\x16GetRecentCallsResponse\x12\x38\n\x05\x63\x61lls\x18\x01 \x03(\x0b\x32\".chalk.runtime.v1.FunctionCallInfoR\x05\x63\x61lls\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"2\n\x15GetCallResultsRequest\x12\x19\n\x08\x63\x61ll_ids\x18\x01 \x03(\tR\x07\x63\x61llIds\"\x90\x01\n\nCallResult\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\x12\x44\n\x08response\x18\x02 \x01(\x0b\x32(.chalk.runtime.v1.PollRemoteCallResponseR\x08response\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\"P\n\x16GetCallResultsResponse\x12\x36\n\x07results\x18\x01 \x03(\x0b\x32\x1c.chalk.runtime.v1.CallResultR\x07results\":\n\x13GetCallCountRequest\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\",\n\x14GetCallCountResponse\x12\x14\n\x05\x63ount\x18\x01 \x01(\x04R\x05\x63ount*\xd7\x01\n\x10RemoteCallStatus\x12\"\n\x1eREMOTE_CALL_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1aREMOTE_CALL_STATUS_PENDING\x10\x01\x12\x1e\n\x1aREMOTE_CALL_STATUS_RUNNING\x10\x02\x12 \n\x1cREMOTE_CALL_STATUS_COMPLETED\x10\x03\x12\x1d\n\x19REMOTE_CALL_STATUS_FAILED\x10\x04\x12\x1e\n\x1aREMOTE_CALL_STATUS_EXPIRED\x10\x05\x32x\n\x11RemoteCallService\x12\x63\n\x0c\x43\x61llFunction\x12%.chalk.runtime.v1.CallFunctionRequest\x1a&.chalk.runtime.v1.CallFunctionResponse\"\x00(\x01\x30\x01\x32\xca\x03\n\x16\x41syncRemoteCallService\x12n\n\x11\x45nqueueRemoteCall\x12*.chalk.runtime.v1.EnqueueRemoteCallRequest\x1a+.chalk.runtime.v1.EnqueueRemoteCallResponse\"\x00\x12\x65\n\x0ePollRemoteCall\x12\'.chalk.runtime.v1.PollRemoteCallRequest\x1a(.chalk.runtime.v1.PollRemoteCallResponse\"\x00\x12~\n\x15StreamRemoteCallBatch\x12..chalk.runtime.v1.StreamRemoteCallBatchRequest\x1a/.chalk.runtime.v1.StreamRemoteCallBatchResponse\"\x00(\x01\x30\x01\x12Y\n\nPurgeQueue\x12#.chalk.runtime.v1.PurgeQueueRequest\x1a$.chalk.runtime.v1.PurgeQueueResponse\"\x00\x32\xd2\x02\n\x18\x46unctionQueueMetaService\x12h\n\x0eGetRecentCalls\x12\'.chalk.runtime.v1.GetRecentCallsRequest\x1a(.chalk.runtime.v1.GetRecentCallsResponse\"\x03\x80}\x03\x12h\n\x0eGetCallResults\x12\'.chalk.runtime.v1.GetCallResultsRequest\x1a(.chalk.runtime.v1.GetCallResultsResponse\"\x03\x80}\x03\x12\x62\n\x0cGetCallCount\x12%.chalk.runtime.v1.GetCallCountRequest\x1a&.chalk.runtime.v1.GetCallCountResponse\"\x03\x80}\x03\x62\x06proto3')
|
|
21
|
+
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chalk.runtime.v1.remote_python_call_pb2', globals())
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
|
|
26
|
+
DESCRIPTOR._options = None
|
|
27
|
+
_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY._options = None
|
|
28
|
+
_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY._serialized_options = b'8\001'
|
|
29
|
+
_FUNCTIONQUEUEMETASERVICE.methods_by_name['GetRecentCalls']._options = None
|
|
30
|
+
_FUNCTIONQUEUEMETASERVICE.methods_by_name['GetRecentCalls']._serialized_options = b'\200}\003'
|
|
31
|
+
_FUNCTIONQUEUEMETASERVICE.methods_by_name['GetCallResults']._options = None
|
|
32
|
+
_FUNCTIONQUEUEMETASERVICE.methods_by_name['GetCallResults']._serialized_options = b'\200}\003'
|
|
33
|
+
_FUNCTIONQUEUEMETASERVICE.methods_by_name['GetCallCount']._options = None
|
|
34
|
+
_FUNCTIONQUEUEMETASERVICE.methods_by_name['GetCallCount']._serialized_options = b'\200}\003'
|
|
35
|
+
_REMOTECALLSTATUS._serialized_start=4488
|
|
36
|
+
_REMOTECALLSTATUS._serialized_end=4703
|
|
37
|
+
_CALLFUNCTIONREQUEST._serialized_start=196
|
|
38
|
+
_CALLFUNCTIONREQUEST._serialized_end=276
|
|
39
|
+
_CALLFUNCTIONRESPONSE._serialized_start=278
|
|
40
|
+
_CALLFUNCTIONRESPONSE._serialized_end=339
|
|
41
|
+
_REMOTECALLARGS._serialized_start=341
|
|
42
|
+
_REMOTECALLARGS._serialized_end=450
|
|
43
|
+
_ENQUEUEREMOTECALLREQUEST._serialized_start=453
|
|
44
|
+
_ENQUEUEREMOTECALLREQUEST._serialized_end=607
|
|
45
|
+
_ENQUEUEREMOTECALLRESPONSE._serialized_start=609
|
|
46
|
+
_ENQUEUEREMOTECALLRESPONSE._serialized_end=661
|
|
47
|
+
_OPENREMOTECALLBATCH._serialized_start=664
|
|
48
|
+
_OPENREMOTECALLBATCH._serialized_end=823
|
|
49
|
+
_SUBMITREMOTECALLBATCHCHUNK._serialized_start=826
|
|
50
|
+
_SUBMITREMOTECALLBATCHCHUNK._serialized_end=981
|
|
51
|
+
_FINISHREMOTECALLBATCHSUBMISSION._serialized_start=983
|
|
52
|
+
_FINISHREMOTECALLBATCHSUBMISSION._serialized_end=1016
|
|
53
|
+
_CANCELREMOTECALLBATCH._serialized_start=1018
|
|
54
|
+
_CANCELREMOTECALLBATCH._serialized_end=1065
|
|
55
|
+
_STREAMREMOTECALLBATCHREQUEST._serialized_start=1068
|
|
56
|
+
_STREAMREMOTECALLBATCHREQUEST._serialized_end=1386
|
|
57
|
+
_REMOTECALLBATCHOPENED._serialized_start=1389
|
|
58
|
+
_REMOTECALLBATCHOPENED._serialized_end=1568
|
|
59
|
+
_REMOTECALLBATCHCALL._serialized_start=1570
|
|
60
|
+
_REMOTECALLBATCHCALL._serialized_end=1645
|
|
61
|
+
_REMOTECALLBATCHCHUNKACCEPTED._serialized_start=1647
|
|
62
|
+
_REMOTECALLBATCHCHUNKACCEPTED._serialized_end=1771
|
|
63
|
+
_REMOTECALLBATCHRESULT._serialized_start=1774
|
|
64
|
+
_REMOTECALLBATCHRESULT._serialized_end=2056
|
|
65
|
+
_REMOTECALLBATCHRESULTCHUNK._serialized_start=2058
|
|
66
|
+
_REMOTECALLBATCHRESULTCHUNK._serialized_end=2177
|
|
67
|
+
_REMOTECALLBATCHCOMPLETED._serialized_start=2180
|
|
68
|
+
_REMOTECALLBATCHCOMPLETED._serialized_end=2315
|
|
69
|
+
_STREAMREMOTECALLBATCHRESPONSE._serialized_start=2318
|
|
70
|
+
_STREAMREMOTECALLBATCHRESPONSE._serialized_end=2656
|
|
71
|
+
_POLLREMOTECALLREQUEST._serialized_start=2658
|
|
72
|
+
_POLLREMOTECALLREQUEST._serialized_end=2730
|
|
73
|
+
_POLLREMOTECALLRESPONSE._serialized_start=2733
|
|
74
|
+
_POLLREMOTECALLRESPONSE._serialized_end=2960
|
|
75
|
+
_PURGEQUEUEREQUEST._serialized_start=2962
|
|
76
|
+
_PURGEQUEUEREQUEST._serialized_end=3051
|
|
77
|
+
_PURGEQUEUERESPONSE._serialized_start=3054
|
|
78
|
+
_PURGEQUEUERESPONSE._serialized_end=3274
|
|
79
|
+
_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY._serialized_start=3201
|
|
80
|
+
_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY._serialized_end=3274
|
|
81
|
+
_FUNCTIONCALLINFO._serialized_start=3277
|
|
82
|
+
_FUNCTIONCALLINFO._serialized_end=3859
|
|
83
|
+
_GETRECENTCALLSREQUEST._serialized_start=3861
|
|
84
|
+
_GETRECENTCALLSREQUEST._serialized_end=3974
|
|
85
|
+
_GETRECENTCALLSRESPONSE._serialized_start=3976
|
|
86
|
+
_GETRECENTCALLSRESPONSE._serialized_end=4098
|
|
87
|
+
_GETCALLRESULTSREQUEST._serialized_start=4100
|
|
88
|
+
_GETCALLRESULTSREQUEST._serialized_end=4150
|
|
89
|
+
_CALLRESULT._serialized_start=4153
|
|
90
|
+
_CALLRESULT._serialized_end=4297
|
|
91
|
+
_GETCALLRESULTSRESPONSE._serialized_start=4299
|
|
92
|
+
_GETCALLRESULTSRESPONSE._serialized_end=4379
|
|
93
|
+
_GETCALLCOUNTREQUEST._serialized_start=4381
|
|
94
|
+
_GETCALLCOUNTREQUEST._serialized_end=4439
|
|
95
|
+
_GETCALLCOUNTRESPONSE._serialized_start=4441
|
|
96
|
+
_GETCALLCOUNTRESPONSE._serialized_end=4485
|
|
97
|
+
_REMOTECALLSERVICE._serialized_start=4705
|
|
98
|
+
_REMOTECALLSERVICE._serialized_end=4825
|
|
99
|
+
_ASYNCREMOTECALLSERVICE._serialized_start=4828
|
|
100
|
+
_ASYNCREMOTECALLSERVICE._serialized_end=5286
|
|
101
|
+
_FUNCTIONQUEUEMETASERVICE._serialized_start=5289
|
|
102
|
+
_FUNCTIONQUEUEMETASERVICE._serialized_end=5627
|
|
103
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.10.14"
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/servicer.py
RENAMED
|
@@ -13,7 +13,10 @@ import pyarrow.ipc as ipc
|
|
|
13
13
|
|
|
14
14
|
from chalk_remote_call.arrow_utils import decode_ipc_stream, encode_record_batch
|
|
15
15
|
from chalk_remote_call.input_transform import resolve_column_names, transform
|
|
16
|
-
from chalk_remote_call.tracing import
|
|
16
|
+
from chalk_remote_call.tracing import (
|
|
17
|
+
_record_queue_wait_spans,
|
|
18
|
+
remote_function_invocation_span,
|
|
19
|
+
)
|
|
17
20
|
|
|
18
21
|
_Params = ParamSpec("_Params")
|
|
19
22
|
_Result = TypeVar("_Result")
|
|
@@ -181,6 +184,7 @@ def process_batches(
|
|
|
181
184
|
the returned list is empty. Input batches are decoded incrementally; a
|
|
182
185
|
malformed later batch can raise after earlier handlers/responses have run.
|
|
183
186
|
"""
|
|
187
|
+
_record_queue_wait_spans(context_metadata)
|
|
184
188
|
results: list[bytes] = []
|
|
185
189
|
append_or_emit = results.append if emit is None else emit
|
|
186
190
|
|
|
@@ -241,6 +245,7 @@ def process_batches_coalesced(
|
|
|
241
245
|
TypeError: Handler is a generator / async generator (not supported in
|
|
242
246
|
coalesced mode — each caller expects exactly one response chunk).
|
|
243
247
|
"""
|
|
248
|
+
_record_queue_wait_spans(context_metadatas)
|
|
244
249
|
if not items_ipc_bytes:
|
|
245
250
|
raise ValueError("process_batches_coalesced called with no items")
|
|
246
251
|
if len(items_ipc_bytes) != len(context_metadatas):
|
|
@@ -330,6 +335,7 @@ def process_batches_coalesced_combined(
|
|
|
330
335
|
in coalesced modes — each caller expects exactly one response
|
|
331
336
|
chunk).
|
|
332
337
|
"""
|
|
338
|
+
_record_queue_wait_spans(context_metadatas)
|
|
333
339
|
if not items_ipc_bytes:
|
|
334
340
|
raise ValueError("process_batches_coalesced_combined called with no items")
|
|
335
341
|
if len(items_ipc_bytes) != len(context_metadatas):
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/tracing.py
RENAMED
|
@@ -359,6 +359,51 @@ def _get_always_off_tracer() -> Any | None:
|
|
|
359
359
|
return _always_off_tracer
|
|
360
360
|
|
|
361
361
|
|
|
362
|
+
def _record_queue_wait_spans(context_metadata: Any) -> None:
|
|
363
|
+
contexts = [context_metadata] if isinstance(context_metadata, Mapping) else context_metadata
|
|
364
|
+
if not isinstance(contexts, Sequence) or isinstance(contexts, str | bytes):
|
|
365
|
+
return
|
|
366
|
+
for context in contexts:
|
|
367
|
+
if not isinstance(context, Mapping) or context.get("peer") != "fnq-self-consumer":
|
|
368
|
+
continue
|
|
369
|
+
metadata = _raw_metadata(context)
|
|
370
|
+
if metadata is None:
|
|
371
|
+
continue
|
|
372
|
+
try:
|
|
373
|
+
started = int(metadata["x-chalk-internal-enqueued-at-ms"]) * 1_000_000
|
|
374
|
+
ended = int(metadata["x-chalk-internal-dequeued-at-ns"])
|
|
375
|
+
except (KeyError, TypeError, ValueError, OverflowError):
|
|
376
|
+
continue
|
|
377
|
+
if started < 0 or ended < started or ended > 2**64 - 1:
|
|
378
|
+
continue
|
|
379
|
+
config = _load_tracing_config()
|
|
380
|
+
override = str(metadata.get(_REMOTE_FUNCTION_TRACE_OVERRIDE_KEY) or "").strip().lower()
|
|
381
|
+
if override == _TRACE_OVERRIDE_OFF:
|
|
382
|
+
continue
|
|
383
|
+
if override == _TRACE_OVERRIDE_ON:
|
|
384
|
+
config = replace(config, policy=_TRACE_POLICY_PARENT_BASED_TRACE_ID_RATIO, sample_rate=1.0)
|
|
385
|
+
metadata = _force_sampled_traceparent(metadata)
|
|
386
|
+
if config.policy in (None, _TRACE_POLICY_ALWAYS_OFF) or config.environment_id is None:
|
|
387
|
+
continue
|
|
388
|
+
_, parent, modules = _span_metadata(metadata, metadata, config)
|
|
389
|
+
if modules is None or parent is None:
|
|
390
|
+
continue
|
|
391
|
+
tracer = _get_tracer(modules[2])
|
|
392
|
+
if tracer is None:
|
|
393
|
+
continue
|
|
394
|
+
span = tracer.start_span(
|
|
395
|
+
"chalk.serverless.queue_wait",
|
|
396
|
+
context=parent,
|
|
397
|
+
start_time=started,
|
|
398
|
+
attributes={
|
|
399
|
+
"chalk.environment_id": config.environment_id,
|
|
400
|
+
"chalk.remote_function.name": str(context.get("function_name") or ""),
|
|
401
|
+
},
|
|
402
|
+
)
|
|
403
|
+
span.end(end_time=ended)
|
|
404
|
+
_request_span_flush()
|
|
405
|
+
|
|
406
|
+
|
|
362
407
|
@contextlib.contextmanager
|
|
363
408
|
def remote_function_invocation_span(
|
|
364
409
|
context_metadata: Any,
|
chalk_remote_call_python-1.10.12/chalk_remote_call/_gen/chalk/runtime/v1/fnq_consumer_pb2.py
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: chalk/runtime/v1/fnq_consumer.proto
|
|
4
|
-
# Protobuf Python Version: 4.25.3
|
|
5
|
-
"""Generated protocol buffer code."""
|
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
-
from google.protobuf.internal import builder as _builder
|
|
10
|
-
# @@protoc_insertion_point(imports)
|
|
11
|
-
|
|
12
|
-
_sym_db = _symbol_database.Default()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from chalk_remote_call._gen.chalk.common.v1 import chalk_error_pb2 as chalk_dot_common_dot_v1_dot_chalk__error__pb2
|
|
16
|
-
from chalk_remote_call._gen.chalk.runtime.v1 import remote_python_call_pb2 as chalk_dot_runtime_dot_v1_dot_remote__python__call__pb2
|
|
17
|
-
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
18
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#chalk/runtime/v1/fnq_consumer.proto\x12\x10\x63halk.runtime.v1\x1a!chalk/common/v1/chalk_error.proto\x1a)chalk/runtime/v1/remote_python_call.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf3\x01\n\x12\x41\x63quireWorkRequest\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId\x12\x1b\n\tmax_calls\x18\x03 \x01(\rR\x08maxCalls\x12%\n\x0emax_concurrent\x18\x04 \x01(\rR\rmaxConcurrent\x12\x34\n\x16lease_duration_seconds\x18\x05 \x01(\rR\x14leaseDurationSeconds\x12\x1f\n\x0b\x63onsumer_id\x18\x06 \x01(\tR\nconsumerId\"\x83\x03\n\x07\x46nqWork\x12\x1f\n\x0bwork_handle\x18\x01 \x01(\tR\nworkHandle\x12\x17\n\x07\x63\x61ll_id\x18\x02 \x01(\tR\x06\x63\x61llId\x12\x39\n\x04\x63\x61ll\x18\x03 \x01(\x0b\x32%.chalk.runtime.v1.CallFunctionRequestR\x04\x63\x61ll\x12\x43\n\x08metadata\x18\x04 \x03(\x0b\x32\'.chalk.runtime.v1.FnqWork.MetadataEntryR\x08metadata\x12\x18\n\x07\x61ttempt\x18\x05 \x01(\x04R\x07\x61ttempt\x12!\n\x0cmax_attempts\x18\x06 \x01(\x04R\x0bmaxAttempts\x12\x44\n\x10lease_expires_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0eleaseExpiresAt\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"D\n\x13\x41\x63quireWorkResponse\x12-\n\x04work\x18\x01 \x01(\x0b\x32\x19.chalk.runtime.v1.FnqWorkR\x04work\"5\n\x10RenewWorkRequest\x12!\n\x0cwork_handles\x18\x01 \x03(\tR\x0bworkHandles\"\x81\x02\n\x11RenewWorkResponse\x12*\n\x11lost_work_handles\x18\x01 \x03(\tR\x0flostWorkHandles\x12\x61\n\x10lease_expires_at\x18\x02 \x03(\x0b\x32\x37.chalk.runtime.v1.RenewWorkResponse.LeaseExpiresAtEntryR\x0eleaseExpiresAt\x1a]\n\x13LeaseExpiresAtEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x05value:\x02\x38\x01\"\xba\x02\n\x14ReportResultsRequest\x12\x1f\n\x0bwork_handle\x18\x01 \x01(\tR\nworkHandle\x12\x1a\n\x08sequence\x18\x02 \x01(\x04R\x08sequence\x12.\n\x13processing_trace_id\x18\x03 \x01(\tR\x11processingTraceId\x12\x16\n\x05\x63hunk\x18\x04 \x01(\x0cH\x00R\x05\x63hunk\x12*\n\x03\x65nd\x18\x05 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x03\x65nd\x12\x37\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1f.chalk.common.v1.ChalkExceptionH\x00R\x05\x65rror\x12.\n\x05retry\x18\x07 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00R\x05retryB\x08\n\x06result\"\x17\n\x15ReportResultsResponse2\xaa\x02\n\x12\x46nqConsumerService\x12\\\n\x0b\x41\x63quireWork\x12$.chalk.runtime.v1.AcquireWorkRequest\x1a%.chalk.runtime.v1.AcquireWorkResponse0\x01\x12T\n\tRenewWork\x12\".chalk.runtime.v1.RenewWorkRequest\x1a#.chalk.runtime.v1.RenewWorkResponse\x12`\n\rReportResults\x12&.chalk.runtime.v1.ReportResultsRequest\x1a\'.chalk.runtime.v1.ReportResultsResponseB\x8a\x01\n\x14\x63om.chalk.runtime.v1B\x10\x46nqConsumerProtoP\x01\xa2\x02\x03\x43RX\xaa\x02\x10\x43halk.Runtime.V1\xca\x02\x10\x43halk\\Runtime\\V1\xe2\x02\x1c\x43halk\\Runtime\\V1\\GPBMetadata\xea\x02\x12\x43halk::Runtime::V1b\x06proto3')
|
|
22
|
-
|
|
23
|
-
_globals = globals()
|
|
24
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chalk.runtime.v1.fnq_consumer_pb2', _globals)
|
|
26
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
-
_globals['DESCRIPTOR']._options = None
|
|
28
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\024com.chalk.runtime.v1B\020FnqConsumerProtoP\001\242\002\003CRX\252\002\020Chalk.Runtime.V1\312\002\020Chalk\\Runtime\\V1\342\002\034Chalk\\Runtime\\V1\\GPBMetadata\352\002\022Chalk::Runtime::V1'
|
|
29
|
-
_globals['_FNQWORK_METADATAENTRY']._options = None
|
|
30
|
-
_globals['_FNQWORK_METADATAENTRY']._serialized_options = b'8\001'
|
|
31
|
-
_globals['_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY']._options = None
|
|
32
|
-
_globals['_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY']._serialized_options = b'8\001'
|
|
33
|
-
_globals['_ACQUIREWORKREQUEST']._serialized_start=198
|
|
34
|
-
_globals['_ACQUIREWORKREQUEST']._serialized_end=441
|
|
35
|
-
_globals['_FNQWORK']._serialized_start=444
|
|
36
|
-
_globals['_FNQWORK']._serialized_end=831
|
|
37
|
-
_globals['_FNQWORK_METADATAENTRY']._serialized_start=772
|
|
38
|
-
_globals['_FNQWORK_METADATAENTRY']._serialized_end=831
|
|
39
|
-
_globals['_ACQUIREWORKRESPONSE']._serialized_start=833
|
|
40
|
-
_globals['_ACQUIREWORKRESPONSE']._serialized_end=901
|
|
41
|
-
_globals['_RENEWWORKREQUEST']._serialized_start=903
|
|
42
|
-
_globals['_RENEWWORKREQUEST']._serialized_end=956
|
|
43
|
-
_globals['_RENEWWORKRESPONSE']._serialized_start=959
|
|
44
|
-
_globals['_RENEWWORKRESPONSE']._serialized_end=1216
|
|
45
|
-
_globals['_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY']._serialized_start=1123
|
|
46
|
-
_globals['_RENEWWORKRESPONSE_LEASEEXPIRESATENTRY']._serialized_end=1216
|
|
47
|
-
_globals['_REPORTRESULTSREQUEST']._serialized_start=1219
|
|
48
|
-
_globals['_REPORTRESULTSREQUEST']._serialized_end=1533
|
|
49
|
-
_globals['_REPORTRESULTSRESPONSE']._serialized_start=1535
|
|
50
|
-
_globals['_REPORTRESULTSRESPONSE']._serialized_end=1558
|
|
51
|
-
_globals['_FNQCONSUMERSERVICE']._serialized_start=1561
|
|
52
|
-
_globals['_FNQCONSUMERSERVICE']._serialized_end=1859
|
|
53
|
-
# @@protoc_insertion_point(module_scope)
|
chalk_remote_call_python-1.10.12/chalk_remote_call/_gen/chalk/runtime/v1/remote_python_call_pb2.py
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# source: chalk/runtime/v1/remote_python_call.proto
|
|
4
|
-
# Protobuf Python Version: 4.25.3
|
|
5
|
-
"""Generated protocol buffer code."""
|
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
-
from google.protobuf.internal import builder as _builder
|
|
10
|
-
# @@protoc_insertion_point(imports)
|
|
11
|
-
|
|
12
|
-
_sym_db = _symbol_database.Default()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from chalk_remote_call._gen.chalk.auth.v1 import permissions_pb2 as chalk_dot_auth_dot_v1_dot_permissions__pb2
|
|
16
|
-
from chalk_remote_call._gen.chalk.common.v1 import chalk_error_pb2 as chalk_dot_common_dot_v1_dot_chalk__error__pb2
|
|
17
|
-
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)chalk/runtime/v1/remote_python_call.proto\x12\x10\x63halk.runtime.v1\x1a\x1f\x63halk/auth/v1/permissions.proto\x1a!chalk/common/v1/chalk_error.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"P\n\x13\x43\x61llFunctionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12%\n\x0e\x66\x65\x61ther_stream\x18\x02 \x01(\x0cR\rfeatherStream\"=\n\x14\x43\x61llFunctionResponse\x12%\n\x0e\x66\x65\x61ther_stream\x18\x01 \x01(\x0cR\rfeatherStream\"m\n\x0eRemoteCallArgs\x12%\n\rfeather_bytes\x18\x01 \x01(\x0cH\x00R\x0c\x66\x65\x61therBytes\x12,\n\x11storage_object_id\x18\x02 \x01(\tH\x00R\x0fstorageObjectIdB\x06\n\x04\x61rgs\"d\n\x18\x45nqueueRemoteCallRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x01(\x0b\x32 .chalk.runtime.v1.RemoteCallArgsR\x04\x61rgs\"4\n\x19\x45nqueueRemoteCallResponse\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\"i\n\x13OpenRemoteCallBatch\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n\x08\x62\x61tch_id\x18\x02 \x01(\tR\x07\x62\x61tchId\x12#\n\rresult_cursor\x18\x03 \x01(\tR\x0cresultCursor\"\x9b\x01\n\x1aSubmitRemoteCallBatchChunk\x12\x1f\n\x0b\x63hunk_index\x18\x01 \x01(\x04R\nchunkIndex\x12&\n\x0f\x66irst_row_index\x18\x02 \x01(\x04R\rfirstRowIndex\x12\x34\n\x04\x61rgs\x18\x03 \x01(\x0b\x32 .chalk.runtime.v1.RemoteCallArgsR\x04\x61rgs\"!\n\x1f\x46inishRemoteCallBatchSubmission\"/\n\x15\x43\x61ncelRemoteCallBatch\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\"\xbe\x02\n\x1cStreamRemoteCallBatchRequest\x12;\n\x04open\x18\x01 \x01(\x0b\x32%.chalk.runtime.v1.OpenRemoteCallBatchH\x00R\x04open\x12\x46\n\x06submit\x18\x02 \x01(\x0b\x32,.chalk.runtime.v1.SubmitRemoteCallBatchChunkH\x00R\x06submit\x12K\n\x06\x66inish\x18\x03 \x01(\x0b\x32\x31.chalk.runtime.v1.FinishRemoteCallBatchSubmissionH\x00R\x06\x66inish\x12\x41\n\x06\x63\x61ncel\x18\x04 \x01(\x0b\x32\'.chalk.runtime.v1.CancelRemoteCallBatchH\x00R\x06\x63\x61ncelB\t\n\x07request\"\xb3\x01\n\x15RemoteCallBatchOpened\x12\x19\n\x08\x62\x61tch_id\x18\x01 \x01(\tR\x07\x62\x61tchId\x12/\n\x13submission_finished\x18\x02 \x01(\x08R\x12submissionFinished\x12(\n\x10next_chunk_index\x18\x03 \x01(\x04R\x0enextChunkIndex\x12$\n\x0enext_row_index\x18\x04 \x01(\x04R\x0cnextRowIndex\"K\n\x13RemoteCallBatchCall\x12\x1b\n\trow_index\x18\x01 \x01(\x04R\x08rowIndex\x12\x17\n\x07\x63\x61ll_id\x18\x02 \x01(\tR\x06\x63\x61llId\"|\n\x1cRemoteCallBatchChunkAccepted\x12\x1f\n\x0b\x63hunk_index\x18\x01 \x01(\x04R\nchunkIndex\x12;\n\x05\x63\x61lls\x18\x02 \x03(\x0b\x32%.chalk.runtime.v1.RemoteCallBatchCallR\x05\x63\x61lls\"\x9a\x02\n\x15RemoteCallBatchResult\x12\x1b\n\trow_index\x18\x01 \x01(\x04R\x08rowIndex\x12\x17\n\x07\x63\x61ll_id\x18\x02 \x01(\tR\x06\x63\x61llId\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x12:\n\x06status\x18\x04 \x01(\x0e\x32\".chalk.runtime.v1.RemoteCallStatusR\x06status\x12>\n\x06result\x18\x05 \x01(\x0b\x32&.chalk.runtime.v1.CallFunctionResponseR\x06result\x12\x33\n\x06\x65rrors\x18\x06 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors\"w\n\x1aRemoteCallBatchResultChunk\x12\x41\n\x07results\x18\x01 \x03(\x0b\x32\'.chalk.runtime.v1.RemoteCallBatchResultR\x07results\x12\x16\n\x06\x63ursor\x18\x02 \x01(\tR\x06\x63ursor\"\x87\x01\n\x18RemoteCallBatchCompleted\x12\x1f\n\x0btotal_calls\x18\x01 \x01(\x04R\ntotalCalls\x12\'\n\x0f\x63ompleted_calls\x18\x02 \x01(\x04R\x0e\x63ompletedCalls\x12!\n\x0c\x66\x61iled_calls\x18\x03 \x01(\x04R\x0b\x66\x61iledCalls\"\xd2\x02\n\x1dStreamRemoteCallBatchResponse\x12\x41\n\x06opened\x18\x01 \x01(\x0b\x32\'.chalk.runtime.v1.RemoteCallBatchOpenedH\x00R\x06opened\x12L\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32..chalk.runtime.v1.RemoteCallBatchChunkAcceptedH\x00R\x08\x61\x63\x63\x65pted\x12H\n\x07results\x18\x03 \x01(\x0b\x32,.chalk.runtime.v1.RemoteCallBatchResultChunkH\x00R\x07results\x12J\n\tcompleted\x18\x04 \x01(\x0b\x32*.chalk.runtime.v1.RemoteCallBatchCompletedH\x00R\tcompletedB\n\n\x08response\"H\n\x15PollRemoteCallRequest\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\x12\x16\n\x06\x63ursor\x18\x02 \x01(\tR\x06\x63ursor\"\xe3\x01\n\x16PollRemoteCallResponse\x12:\n\x06status\x18\x01 \x01(\x0e\x32\".chalk.runtime.v1.RemoteCallStatusR\x06status\x12@\n\x07results\x18\x02 \x03(\x0b\x32&.chalk.runtime.v1.CallFunctionResponseR\x07results\x12\x16\n\x06\x63ursor\x18\x03 \x01(\tR\x06\x63ursor\x12\x33\n\x06\x65rrors\x18\x04 \x03(\x0b\x32\x1b.chalk.common.v1.ChalkErrorR\x06\x65rrors\"Y\n\x11PurgeQueueRequest\x12%\n\rfunction_name\x18\x01 \x01(\tH\x00R\x0c\x66unctionName\x12\x12\n\x03\x61ll\x18\x02 \x01(\x08H\x00R\x03\x61llB\t\n\x07request\"\xdc\x01\n\x12PurgeQueueResponse\x12{\n\x19items_removed_by_function\x18\x01 \x03(\x0b\x32@.chalk.runtime.v1.PurgeQueueResponse.ItemsRemovedByFunctionEntryR\x16itemsRemovedByFunction\x1aI\n\x1bItemsRemovedByFunctionEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x04R\x05value:\x02\x38\x01\"\x8b\x02\n\x10\x46unctionCallInfo\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\x12#\n\rfunction_name\x18\x02 \x01(\tR\x0c\x66unctionName\x12;\n\x0b\x65nqueued_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nenqueuedAt\x12:\n\x06status\x18\x04 \x01(\x0e\x32\".chalk.runtime.v1.RemoteCallStatusR\x06status\x12%\n\x0eresult_summary\x18\x05 \x01(\tR\rresultSummary\x12\x19\n\x08trace_id\x18\x06 \x01(\tR\x07traceId\"q\n\x15GetRecentCallsRequest\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken\"z\n\x16GetRecentCallsResponse\x12\x38\n\x05\x63\x61lls\x18\x01 \x03(\x0b\x32\".chalk.runtime.v1.FunctionCallInfoR\x05\x63\x61lls\x12&\n\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"2\n\x15GetCallResultsRequest\x12\x19\n\x08\x63\x61ll_ids\x18\x01 \x03(\tR\x07\x63\x61llIds\"\x90\x01\n\nCallResult\x12\x17\n\x07\x63\x61ll_id\x18\x01 \x01(\tR\x06\x63\x61llId\x12\x44\n\x08response\x18\x02 \x01(\x0b\x32(.chalk.runtime.v1.PollRemoteCallResponseR\x08response\x12#\n\rerror_message\x18\x03 \x01(\tR\x0c\x65rrorMessage\"P\n\x16GetCallResultsResponse\x12\x36\n\x07results\x18\x01 \x03(\x0b\x32\x1c.chalk.runtime.v1.CallResultR\x07results\":\n\x13GetCallCountRequest\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\",\n\x14GetCallCountResponse\x12\x14\n\x05\x63ount\x18\x01 \x01(\x04R\x05\x63ount*\xd7\x01\n\x10RemoteCallStatus\x12\"\n\x1eREMOTE_CALL_STATUS_UNSPECIFIED\x10\x00\x12\x1e\n\x1aREMOTE_CALL_STATUS_PENDING\x10\x01\x12\x1e\n\x1aREMOTE_CALL_STATUS_RUNNING\x10\x02\x12 \n\x1cREMOTE_CALL_STATUS_COMPLETED\x10\x03\x12\x1d\n\x19REMOTE_CALL_STATUS_FAILED\x10\x04\x12\x1e\n\x1aREMOTE_CALL_STATUS_EXPIRED\x10\x05\x32x\n\x11RemoteCallService\x12\x63\n\x0c\x43\x61llFunction\x12%.chalk.runtime.v1.CallFunctionRequest\x1a&.chalk.runtime.v1.CallFunctionResponse\"\x00(\x01\x30\x01\x32\xca\x03\n\x16\x41syncRemoteCallService\x12n\n\x11\x45nqueueRemoteCall\x12*.chalk.runtime.v1.EnqueueRemoteCallRequest\x1a+.chalk.runtime.v1.EnqueueRemoteCallResponse\"\x00\x12\x65\n\x0ePollRemoteCall\x12\'.chalk.runtime.v1.PollRemoteCallRequest\x1a(.chalk.runtime.v1.PollRemoteCallResponse\"\x00\x12~\n\x15StreamRemoteCallBatch\x12..chalk.runtime.v1.StreamRemoteCallBatchRequest\x1a/.chalk.runtime.v1.StreamRemoteCallBatchResponse\"\x00(\x01\x30\x01\x12Y\n\nPurgeQueue\x12#.chalk.runtime.v1.PurgeQueueRequest\x1a$.chalk.runtime.v1.PurgeQueueResponse\"\x00\x32\xd2\x02\n\x18\x46unctionQueueMetaService\x12h\n\x0eGetRecentCalls\x12\'.chalk.runtime.v1.GetRecentCallsRequest\x1a(.chalk.runtime.v1.GetRecentCallsResponse\"\x03\x80}\x03\x12h\n\x0eGetCallResults\x12\'.chalk.runtime.v1.GetCallResultsRequest\x1a(.chalk.runtime.v1.GetCallResultsResponse\"\x03\x80}\x03\x12\x62\n\x0cGetCallCount\x12%.chalk.runtime.v1.GetCallCountRequest\x1a&.chalk.runtime.v1.GetCallCountResponse\"\x03\x80}\x03\x42\x8f\x01\n\x14\x63om.chalk.runtime.v1B\x15RemotePythonCallProtoP\x01\xa2\x02\x03\x43RX\xaa\x02\x10\x43halk.Runtime.V1\xca\x02\x10\x43halk\\Runtime\\V1\xe2\x02\x1c\x43halk\\Runtime\\V1\\GPBMetadata\xea\x02\x12\x43halk::Runtime::V1b\x06proto3')
|
|
21
|
-
|
|
22
|
-
_globals = globals()
|
|
23
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
24
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chalk.runtime.v1.remote_python_call_pb2', _globals)
|
|
25
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
26
|
-
_globals['DESCRIPTOR']._options = None
|
|
27
|
-
_globals['DESCRIPTOR']._serialized_options = b'\n\024com.chalk.runtime.v1B\025RemotePythonCallProtoP\001\242\002\003CRX\252\002\020Chalk.Runtime.V1\312\002\020Chalk\\Runtime\\V1\342\002\034Chalk\\Runtime\\V1\\GPBMetadata\352\002\022Chalk::Runtime::V1'
|
|
28
|
-
_globals['_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY']._options = None
|
|
29
|
-
_globals['_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY']._serialized_options = b'8\001'
|
|
30
|
-
_globals['_FUNCTIONQUEUEMETASERVICE'].methods_by_name['GetRecentCalls']._options = None
|
|
31
|
-
_globals['_FUNCTIONQUEUEMETASERVICE'].methods_by_name['GetRecentCalls']._serialized_options = b'\200}\003'
|
|
32
|
-
_globals['_FUNCTIONQUEUEMETASERVICE'].methods_by_name['GetCallResults']._options = None
|
|
33
|
-
_globals['_FUNCTIONQUEUEMETASERVICE'].methods_by_name['GetCallResults']._serialized_options = b'\200}\003'
|
|
34
|
-
_globals['_FUNCTIONQUEUEMETASERVICE'].methods_by_name['GetCallCount']._options = None
|
|
35
|
-
_globals['_FUNCTIONQUEUEMETASERVICE'].methods_by_name['GetCallCount']._serialized_options = b'\200}\003'
|
|
36
|
-
_globals['_REMOTECALLSTATUS']._serialized_start=4031
|
|
37
|
-
_globals['_REMOTECALLSTATUS']._serialized_end=4246
|
|
38
|
-
_globals['_CALLFUNCTIONREQUEST']._serialized_start=164
|
|
39
|
-
_globals['_CALLFUNCTIONREQUEST']._serialized_end=244
|
|
40
|
-
_globals['_CALLFUNCTIONRESPONSE']._serialized_start=246
|
|
41
|
-
_globals['_CALLFUNCTIONRESPONSE']._serialized_end=307
|
|
42
|
-
_globals['_REMOTECALLARGS']._serialized_start=309
|
|
43
|
-
_globals['_REMOTECALLARGS']._serialized_end=418
|
|
44
|
-
_globals['_ENQUEUEREMOTECALLREQUEST']._serialized_start=420
|
|
45
|
-
_globals['_ENQUEUEREMOTECALLREQUEST']._serialized_end=520
|
|
46
|
-
_globals['_ENQUEUEREMOTECALLRESPONSE']._serialized_start=522
|
|
47
|
-
_globals['_ENQUEUEREMOTECALLRESPONSE']._serialized_end=574
|
|
48
|
-
_globals['_OPENREMOTECALLBATCH']._serialized_start=576
|
|
49
|
-
_globals['_OPENREMOTECALLBATCH']._serialized_end=681
|
|
50
|
-
_globals['_SUBMITREMOTECALLBATCHCHUNK']._serialized_start=684
|
|
51
|
-
_globals['_SUBMITREMOTECALLBATCHCHUNK']._serialized_end=839
|
|
52
|
-
_globals['_FINISHREMOTECALLBATCHSUBMISSION']._serialized_start=841
|
|
53
|
-
_globals['_FINISHREMOTECALLBATCHSUBMISSION']._serialized_end=874
|
|
54
|
-
_globals['_CANCELREMOTECALLBATCH']._serialized_start=876
|
|
55
|
-
_globals['_CANCELREMOTECALLBATCH']._serialized_end=923
|
|
56
|
-
_globals['_STREAMREMOTECALLBATCHREQUEST']._serialized_start=926
|
|
57
|
-
_globals['_STREAMREMOTECALLBATCHREQUEST']._serialized_end=1244
|
|
58
|
-
_globals['_REMOTECALLBATCHOPENED']._serialized_start=1247
|
|
59
|
-
_globals['_REMOTECALLBATCHOPENED']._serialized_end=1426
|
|
60
|
-
_globals['_REMOTECALLBATCHCALL']._serialized_start=1428
|
|
61
|
-
_globals['_REMOTECALLBATCHCALL']._serialized_end=1503
|
|
62
|
-
_globals['_REMOTECALLBATCHCHUNKACCEPTED']._serialized_start=1505
|
|
63
|
-
_globals['_REMOTECALLBATCHCHUNKACCEPTED']._serialized_end=1629
|
|
64
|
-
_globals['_REMOTECALLBATCHRESULT']._serialized_start=1632
|
|
65
|
-
_globals['_REMOTECALLBATCHRESULT']._serialized_end=1914
|
|
66
|
-
_globals['_REMOTECALLBATCHRESULTCHUNK']._serialized_start=1916
|
|
67
|
-
_globals['_REMOTECALLBATCHRESULTCHUNK']._serialized_end=2035
|
|
68
|
-
_globals['_REMOTECALLBATCHCOMPLETED']._serialized_start=2038
|
|
69
|
-
_globals['_REMOTECALLBATCHCOMPLETED']._serialized_end=2173
|
|
70
|
-
_globals['_STREAMREMOTECALLBATCHRESPONSE']._serialized_start=2176
|
|
71
|
-
_globals['_STREAMREMOTECALLBATCHRESPONSE']._serialized_end=2514
|
|
72
|
-
_globals['_POLLREMOTECALLREQUEST']._serialized_start=2516
|
|
73
|
-
_globals['_POLLREMOTECALLREQUEST']._serialized_end=2588
|
|
74
|
-
_globals['_POLLREMOTECALLRESPONSE']._serialized_start=2591
|
|
75
|
-
_globals['_POLLREMOTECALLRESPONSE']._serialized_end=2818
|
|
76
|
-
_globals['_PURGEQUEUEREQUEST']._serialized_start=2820
|
|
77
|
-
_globals['_PURGEQUEUEREQUEST']._serialized_end=2909
|
|
78
|
-
_globals['_PURGEQUEUERESPONSE']._serialized_start=2912
|
|
79
|
-
_globals['_PURGEQUEUERESPONSE']._serialized_end=3132
|
|
80
|
-
_globals['_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY']._serialized_start=3059
|
|
81
|
-
_globals['_PURGEQUEUERESPONSE_ITEMSREMOVEDBYFUNCTIONENTRY']._serialized_end=3132
|
|
82
|
-
_globals['_FUNCTIONCALLINFO']._serialized_start=3135
|
|
83
|
-
_globals['_FUNCTIONCALLINFO']._serialized_end=3402
|
|
84
|
-
_globals['_GETRECENTCALLSREQUEST']._serialized_start=3404
|
|
85
|
-
_globals['_GETRECENTCALLSREQUEST']._serialized_end=3517
|
|
86
|
-
_globals['_GETRECENTCALLSRESPONSE']._serialized_start=3519
|
|
87
|
-
_globals['_GETRECENTCALLSRESPONSE']._serialized_end=3641
|
|
88
|
-
_globals['_GETCALLRESULTSREQUEST']._serialized_start=3643
|
|
89
|
-
_globals['_GETCALLRESULTSREQUEST']._serialized_end=3693
|
|
90
|
-
_globals['_CALLRESULT']._serialized_start=3696
|
|
91
|
-
_globals['_CALLRESULT']._serialized_end=3840
|
|
92
|
-
_globals['_GETCALLRESULTSRESPONSE']._serialized_start=3842
|
|
93
|
-
_globals['_GETCALLRESULTSRESPONSE']._serialized_end=3922
|
|
94
|
-
_globals['_GETCALLCOUNTREQUEST']._serialized_start=3924
|
|
95
|
-
_globals['_GETCALLCOUNTREQUEST']._serialized_end=3982
|
|
96
|
-
_globals['_GETCALLCOUNTRESPONSE']._serialized_start=3984
|
|
97
|
-
_globals['_GETCALLCOUNTRESPONSE']._serialized_end=4028
|
|
98
|
-
_globals['_REMOTECALLSERVICE']._serialized_start=4248
|
|
99
|
-
_globals['_REMOTECALLSERVICE']._serialized_end=4368
|
|
100
|
-
_globals['_ASYNCREMOTECALLSERVICE']._serialized_start=4371
|
|
101
|
-
_globals['_ASYNCREMOTECALLSERVICE']._serialized_end=4829
|
|
102
|
-
_globals['_FUNCTIONQUEUEMETASERVICE']._serialized_start=4832
|
|
103
|
-
_globals['_FUNCTIONQUEUEMETASERVICE']._serialized_end=5170
|
|
104
|
-
# @@protoc_insertion_point(module_scope)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.10.12"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/__init__.py
RENAMED
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/_native.pyi
RENAMED
|
File without changes
|
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/cli.py
RENAMED
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/errors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/logging.py
RENAMED
|
File without changes
|
{chalk_remote_call_python-1.10.12 → chalk_remote_call_python-1.10.14}/chalk_remote_call/server.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|