indexify 0.3.30__py3-none-any.whl → 0.4.2__py3-none-any.whl
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.
- indexify/cli/__init__.py +18 -0
- indexify/cli/build_image.py +51 -0
- indexify/cli/deploy.py +57 -0
- indexify/cli/executor.py +205 -0
- indexify/executor/{grpc/channel_manager.py → channel_manager.py} +17 -11
- indexify/executor/executor.py +57 -311
- indexify/executor/function_allowlist.py +59 -0
- indexify/executor/function_executor/function_executor.py +12 -6
- indexify/executor/function_executor/invocation_state_client.py +25 -3
- indexify/executor/function_executor/server/function_executor_server_factory.py +3 -3
- indexify/executor/function_executor/server/subprocess_function_executor_server_factory.py +22 -11
- indexify/executor/function_executor_controller/__init__.py +13 -0
- indexify/executor/function_executor_controller/completed_task_metrics.py +82 -0
- indexify/executor/function_executor_controller/create_function_executor.py +154 -0
- indexify/executor/function_executor_controller/debug_event_loop.py +37 -0
- indexify/executor/function_executor_controller/destroy_function_executor.py +28 -0
- indexify/executor/function_executor_controller/downloads.py +199 -0
- indexify/executor/function_executor_controller/events.py +172 -0
- indexify/executor/function_executor_controller/function_executor_controller.py +759 -0
- indexify/executor/function_executor_controller/loggers.py +57 -0
- indexify/executor/function_executor_controller/message_validators.py +65 -0
- indexify/executor/function_executor_controller/metrics/completed_task_metrics.py +68 -0
- indexify/executor/{metrics/downloader.py → function_executor_controller/metrics/downloads.py} +1 -3
- indexify/executor/function_executor_controller/metrics/function_executor_controller.py +60 -0
- indexify/executor/{function_executor/metrics/single_task_runner.py → function_executor_controller/metrics/run_task.py} +9 -3
- indexify/executor/function_executor_controller/metrics/upload_task_output.py +39 -0
- indexify/executor/function_executor_controller/prepare_task.py +38 -0
- indexify/executor/function_executor_controller/run_task.py +201 -0
- indexify/executor/function_executor_controller/task_info.py +33 -0
- indexify/executor/function_executor_controller/task_output.py +122 -0
- indexify/executor/function_executor_controller/upload_task_output.py +234 -0
- indexify/executor/host_resources/host_resources.py +20 -25
- indexify/executor/{grpc/metrics → metrics}/channel_manager.py +1 -1
- indexify/executor/metrics/executor.py +0 -47
- indexify/executor/{grpc/metrics → metrics}/state_reconciler.py +1 -1
- indexify/executor/{grpc/metrics → metrics}/state_reporter.py +1 -1
- indexify/executor/monitoring/health_checker/generic_health_checker.py +6 -59
- indexify/executor/monitoring/health_checker/health_checker.py +0 -11
- indexify/executor/{grpc/state_reconciler.py → state_reconciler.py} +139 -141
- indexify/executor/state_reporter.py +364 -0
- indexify/proto/executor_api.proto +67 -59
- indexify/proto/executor_api_pb2.py +52 -52
- indexify/proto/executor_api_pb2.pyi +125 -104
- indexify/proto/executor_api_pb2_grpc.py +0 -47
- {indexify-0.3.30.dist-info → indexify-0.4.2.dist-info}/METADATA +1 -3
- indexify-0.4.2.dist-info/RECORD +68 -0
- indexify-0.4.2.dist-info/entry_points.txt +3 -0
- indexify/cli/cli.py +0 -267
- indexify/executor/api_objects.py +0 -92
- indexify/executor/downloader.py +0 -417
- indexify/executor/executor_flavor.py +0 -7
- indexify/executor/function_executor/function_executor_state.py +0 -107
- indexify/executor/function_executor/function_executor_states_container.py +0 -93
- indexify/executor/function_executor/function_executor_status.py +0 -95
- indexify/executor/function_executor/metrics/function_executor_state.py +0 -46
- indexify/executor/function_executor/metrics/function_executor_state_container.py +0 -10
- indexify/executor/function_executor/single_task_runner.py +0 -345
- indexify/executor/function_executor/task_input.py +0 -21
- indexify/executor/function_executor/task_output.py +0 -105
- indexify/executor/grpc/function_executor_controller.py +0 -418
- indexify/executor/grpc/metrics/task_controller.py +0 -8
- indexify/executor/grpc/state_reporter.py +0 -314
- indexify/executor/grpc/task_controller.py +0 -508
- indexify/executor/metrics/task_fetcher.py +0 -21
- indexify/executor/metrics/task_reporter.py +0 -53
- indexify/executor/metrics/task_runner.py +0 -52
- indexify/executor/monitoring/function_allowlist.py +0 -25
- indexify/executor/runtime_probes.py +0 -68
- indexify/executor/task_fetcher.py +0 -96
- indexify/executor/task_reporter.py +0 -459
- indexify/executor/task_runner.py +0 -177
- indexify-0.3.30.dist-info/RECORD +0 -68
- indexify-0.3.30.dist-info/entry_points.txt +0 -3
- {indexify-0.3.30.dist-info → indexify-0.4.2.dist-info}/WHEEL +0 -0
@@ -19,7 +19,7 @@ _sym_db = _symbol_database.Default()
|
|
19
19
|
|
20
20
|
|
21
21
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
22
|
-
b'\n!indexify/proto/executor_api.proto\x12\x0f\x65xecutor_api_pb"\x87\x02\n\x0b\x44\x61taPayload\x12\x11\n\x04path\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\x04size\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x18\n\x0bsha256_hash\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x03uri\x18\x04 \x01(\tH\x03\x88\x01\x01\x12;\n\x08\x65ncoding\x18\x05 \x01(\x0e\x32$.executor_api_pb.DataPayloadEncodingH\x04\x88\x01\x01\x12\x1d\n\x10\x65ncoding_version\x18\x06 \x01(\x04H\x05\x88\x01\x01\x42\x07\n\x05_pathB\x07\n\x05_sizeB\x0e\n\x0c_sha256_hashB\x06\n\x04_uriB\x0b\n\t_encodingB\x13\n\x11_encoding_version"k\n\x0cGPUResources\x12\x12\n\x05\x63ount\x18\x01 \x01(\rH\x00\x88\x01\x01\x12-\n\x05model\x18\x02 \x01(\x0e\x32\x19.executor_api_pb.GPUModelH\x01\x88\x01\x01\x42\x08\n\x06_countB\x08\n\x06_modelJ\x04\x08\x03\x10\x04"\xc2\x01\n\rHostResources\x12\x16\n\tcpu_count\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmemory_bytes\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x17\n\ndisk_bytes\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12/\n\x03gpu\x18\x04 \x01(\x0b\x32\x1d.executor_api_pb.GPUResourcesH\x03\x88\x01\x01\x42\x0c\n\n_cpu_countB\x0f\n\r_memory_bytesB\r\n\x0b_disk_bytesB\x06\n\x04_gpu"\xbb\x01\n\x0f\x41llowedFunction\x12\x16\n\tnamespace\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ngraph_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rgraph_version\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_function_nameB\x10\n\x0e_graph_version"\xc5\x01\n\x19\x46unctionExecutorResources\x12\x1b\n\x0e\x63pu_ms_per_sec\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmemory_bytes\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x17\n\ndisk_bytes\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x16\n\tgpu_count\x18\x04 \x01(\rH\x03\x88\x01\x01\x42\x11\n\x0f_cpu_ms_per_secB\x0f\n\r_memory_bytesB\r\n\x0b_disk_bytesB\x0c\n\n_gpu_count"\xbf\x04\n\x1b\x46unctionExecutorDescription\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tnamespace\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\ngraph_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rgraph_version\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x16\n\timage_uri\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x14\n\x0csecret_names\x18\x07 \x03(\t\x12<\n\x0fresource_limits\x18\x08 \x01(\x0b\x32\x1e.executor_api_pb.HostResourcesH\x06\x88\x01\x01\x12%\n\x18\x63ustomer_code_timeout_ms\x18\t \x01(\rH\x07\x88\x01\x01\x12\x30\n\x05graph\x18\n \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\x08\x88\x01\x01\x12\x42\n\tresources\x18\x0b \x01(\x0b\x32*.executor_api_pb.FunctionExecutorResourcesH\t\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_graph_versionB\x10\n\x0e_function_nameB\x0c\n\n_image_uriB\x12\n\x10_resource_limitsB\x1b\n\x19_customer_code_timeout_msB\x08\n\x06_graphB\x0c\n\n_resources"\xbe\x01\n\x15\x46unctionExecutorState\x12\x46\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32,.executor_api_pb.FunctionExecutorDescriptionH\x00\x88\x01\x01\x12<\n\x06status\x18\x02 \x01(\x0e\x32\'.executor_api_pb.FunctionExecutorStatusH\x01\x88\x01\x01\x42\x0e\n\x0c_descriptionB\t\n\x07_statusJ\x04\x08\x03\x10\x04"\xc3\x06\n\rExecutorState\x12\x18\n\x0b\x65xecutor_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1d\n\x10\x64\x65velopment_mode\x18\x02 \x01(\x08H\x01\x88\x01\x01\x12\x15\n\x08hostname\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x34\n\x06\x66lavor\x18\x04 \x01(\x0e\x32\x1f.executor_api_pb.ExecutorFlavorH\x03\x88\x01\x01\x12\x14\n\x07version\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x34\n\x06status\x18\x06 \x01(\x0e\x32\x1f.executor_api_pb.ExecutorStatusH\x05\x88\x01\x01\x12<\n\x0ftotal_resources\x18\r \x01(\x0b\x32\x1e.executor_api_pb.HostResourcesH\x06\x88\x01\x01\x12N\n!total_function_executor_resources\x18\x07 \x01(\x0b\x32\x1e.executor_api_pb.HostResourcesH\x07\x88\x01\x01\x12;\n\x11\x61llowed_functions\x18\x08 \x03(\x0b\x32 .executor_api_pb.AllowedFunction\x12H\n\x18\x66unction_executor_states\x18\t \x03(\x0b\x32&.executor_api_pb.FunctionExecutorState\x12:\n\x06labels\x18\n \x03(\x0b\x32*.executor_api_pb.ExecutorState.LabelsEntry\x12\x17\n\nstate_hash\x18\x0b \x01(\tH\x08\x88\x01\x01\x12\x19\n\x0cserver_clock\x18\x0c \x01(\x04H\t\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0e\n\x0c_executor_idB\x13\n\x11_development_modeB\x0b\n\t_hostnameB\t\n\x07_flavorB\n\n\x08_versionB\t\n\x07_statusB\x12\n\x10_total_resourcesB$\n"_total_function_executor_resourcesB\r\n\x0b_state_hashB\x0f\n\r_server_clock"l\n\x1aReportExecutorStateRequest\x12;\n\x0e\x65xecutor_state\x18\x01 \x01(\x0b\x32\x1e.executor_api_pb.ExecutorStateH\x00\x88\x01\x01\x42\x11\n\x0f_executor_state"\x1d\n\x1bReportExecutorStateResponse"\xcf\x01\n\x0fTaskRetryPolicy\x12\x18\n\x0bmax_retries\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x1d\n\x10initial_delay_ms\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x19\n\x0cmax_delay_ms\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\x1d\n\x10\x64\x65lay_multiplier\x18\x04 \x01(\rH\x03\x88\x01\x01\x42\x0e\n\x0c_max_retriesB\x13\n\x11_initial_delay_msB\x0f\n\r_max_delay_msB\x13\n\x11_delay_multiplier"\xa4\x05\n\x04Task\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tnamespace\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\ngraph_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rgraph_version\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x05 \x01(\tH\x04\x88\x01\x01\x12 \n\x13graph_invocation_id\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x16\n\tinput_key\x18\x08 \x01(\tH\x06\x88\x01\x01\x12\x1f\n\x12reducer_output_key\x18\t \x01(\tH\x07\x88\x01\x01\x12\x17\n\ntimeout_ms\x18\n \x01(\rH\x08\x88\x01\x01\x12\x30\n\x05input\x18\x0b \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\t\x88\x01\x01\x12\x38\n\rreducer_input\x18\x0c \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\n\x88\x01\x01\x12&\n\x19output_payload_uri_prefix\x18\r \x01(\tH\x0b\x88\x01\x01\x12;\n\x0cretry_policy\x18\x0e \x01(\x0b\x32 .executor_api_pb.TaskRetryPolicyH\x0c\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_graph_versionB\x10\n\x0e_function_nameB\x16\n\x14_graph_invocation_idB\x0c\n\n_input_keyB\x15\n\x13_reducer_output_keyB\r\n\x0b_timeout_msB\x08\n\x06_inputB\x10\n\x0e_reducer_inputB\x1c\n\x1a_output_payload_uri_prefixB\x0f\n\r_retry_policy"\x7f\n\x0eTaskAllocation\x12!\n\x14\x66unction_executor_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12(\n\x04task\x18\x02 \x01(\x0b\x32\x15.executor_api_pb.TaskH\x01\x88\x01\x01\x42\x17\n\x15_function_executor_idB\x07\n\x05_task"K\n\x1fGetDesiredExecutorStatesRequest\x12\x18\n\x0b\x65xecutor_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_executor_id"\xb9\x01\n\x14\x44\x65siredExecutorState\x12H\n\x12\x66unction_executors\x18\x01 \x03(\x0b\x32,.executor_api_pb.FunctionExecutorDescription\x12\x39\n\x10task_allocations\x18\x02 \x03(\x0b\x32\x1f.executor_api_pb.TaskAllocation\x12\x12\n\x05\x63lock\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x08\n\x06_clock"\x87\x06\n\x18ReportTaskOutcomeRequest\x12\x14\n\x07task_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tnamespace\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\ngraph_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x04 \x01(\tH\x03\x88\x01\x01\x12 \n\x13graph_invocation_id\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x32\n\x07outcome\x18\x07 \x01(\x0e\x32\x1c.executor_api_pb.TaskOutcomeH\x05\x88\x01\x01\x12\x1a\n\rinvocation_id\x18\x08 \x01(\tH\x06\x88\x01\x01\x12\x18\n\x0b\x65xecutor_id\x18\t \x01(\tH\x07\x88\x01\x01\x12\x14\n\x07reducer\x18\n \x01(\x08H\x08\x88\x01\x01\x12\x16\n\x0enext_functions\x18\x0b \x03(\t\x12\x30\n\nfn_outputs\x18\x0c \x03(\x0b\x32\x1c.executor_api_pb.DataPayload\x12\x31\n\x06stdout\x18\x0e \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\t\x88\x01\x01\x12\x31\n\x06stderr\x18\x0f \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\n\x88\x01\x01\x12=\n\x0foutput_encoding\x18\r \x01(\x0e\x32\x1f.executor_api_pb.OutputEncodingH\x0b\x88\x01\x01\x12$\n\x17output_encoding_version\x18\x05 \x01(\x04H\x0c\x88\x01\x01\x42\n\n\x08_task_idB\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_function_nameB\x16\n\x14_graph_invocation_idB\n\n\x08_outcomeB\x10\n\x0e_invocation_idB\x0e\n\x0c_executor_idB\n\n\x08_reducerB\t\n\x07_stdoutB\t\n\x07_stderrB\x12\n\x10_output_encodingB\x1a\n\x18_output_encoding_version"\x1b\n\x19ReportTaskOutcomeResponse*\xab\x01\n\x13\x44\x61taPayloadEncoding\x12!\n\x1d\x44\x41TA_PAYLOAD_ENCODING_UNKNOWN\x10\x00\x12#\n\x1f\x44\x41TA_PAYLOAD_ENCODING_UTF8_JSON\x10\x01\x12#\n\x1f\x44\x41TA_PAYLOAD_ENCODING_UTF8_TEXT\x10\x02\x12\'\n#DATA_PAYLOAD_ENCODING_BINARY_PICKLE\x10\x03*\xd6\x01\n\x08GPUModel\x12\x15\n\x11GPU_MODEL_UNKNOWN\x10\x00\x12\x1e\n\x1aGPU_MODEL_NVIDIA_A100_40GB\x10\x01\x12\x1e\n\x1aGPU_MODEL_NVIDIA_A100_80GB\x10\x02\x12\x1e\n\x1aGPU_MODEL_NVIDIA_H100_80GB\x10\x03\x12\x1d\n\x19GPU_MODEL_NVIDIA_TESLA_T4\x10\x04\x12\x1a\n\x16GPU_MODEL_NVIDIA_A6000\x10\x05\x12\x18\n\x14GPU_MODEL_NVIDIA_A10\x10\x06*\xca\x03\n\x16\x46unctionExecutorStatus\x12$\n FUNCTION_EXECUTOR_STATUS_UNKNOWN\x10\x00\x12(\n$FUNCTION_EXECUTOR_STATUS_STARTING_UP\x10\x01\x12:\n6FUNCTION_EXECUTOR_STATUS_STARTUP_FAILED_CUSTOMER_ERROR\x10\x02\x12:\n6FUNCTION_EXECUTOR_STATUS_STARTUP_FAILED_PLATFORM_ERROR\x10\x03\x12!\n\x1d\x46UNCTION_EXECUTOR_STATUS_IDLE\x10\x04\x12)\n%FUNCTION_EXECUTOR_STATUS_RUNNING_TASK\x10\x05\x12&\n"FUNCTION_EXECUTOR_STATUS_UNHEALTHY\x10\x06\x12%\n!FUNCTION_EXECUTOR_STATUS_STOPPING\x10\x07\x12$\n FUNCTION_EXECUTOR_STATUS_STOPPED\x10\x08\x12%\n!FUNCTION_EXECUTOR_STATUS_SHUTDOWN\x10\t*\xc3\x01\n\x0e\x45xecutorStatus\x12\x1b\n\x17\x45XECUTOR_STATUS_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTOR_STATUS_STARTING_UP\x10\x01\x12\x1b\n\x17\x45XECUTOR_STATUS_RUNNING\x10\x02\x12\x1b\n\x17\x45XECUTOR_STATUS_DRAINED\x10\x03\x12\x1c\n\x18\x45XECUTOR_STATUS_STOPPING\x10\x04\x12\x1b\n\x17\x45XECUTOR_STATUS_STOPPED\x10\x05*d\n\x0e\x45xecutorFlavor\x12\x1b\n\x17\x45XECUTOR_FLAVOR_UNKNOWN\x10\x00\x12\x17\n\x13\x45XECUTOR_FLAVOR_OSS\x10\x01\x12\x1c\n\x18\x45XECUTOR_FLAVOR_PLATFORM\x10\x02*[\n\x0bTaskOutcome\x12\x18\n\x14TASK_OUTCOME_UNKNOWN\x10\x00\x12\x18\n\x14TASK_OUTCOME_SUCCESS\x10\x01\x12\x18\n\x14TASK_OUTCOME_FAILURE\x10\x02*\x7f\n\x0eOutputEncoding\x12\x1b\n\x17OUTPUT_ENCODING_UNKNOWN\x10\x00\x12\x18\n\x14OUTPUT_ENCODING_JSON\x10\x01\x12\x1a\n\x16OUTPUT_ENCODING_PICKLE\x10\x02\x12\x1a\n\x16OUTPUT_ENCODING_BINARY\x10\x03\x32\xef\x02\n\x0b\x45xecutorAPI\x12t\n\x15report_executor_state\x12+.executor_api_pb.ReportExecutorStateRequest\x1a,.executor_api_pb.ReportExecutorStateResponse"\x00\x12z\n\x1bget_desired_executor_states\x12\x30.executor_api_pb.GetDesiredExecutorStatesRequest\x1a%.executor_api_pb.DesiredExecutorState"\x00\x30\x01\x12n\n\x13report_task_outcome\x12).executor_api_pb.ReportTaskOutcomeRequest\x1a*.executor_api_pb.ReportTaskOutcomeResponse"\x00\x62\x06proto3'
|
22
|
+
b'\n!indexify/proto/executor_api.proto\x12\x0f\x65xecutor_api_pb"\xeb\x01\n\x0b\x44\x61taPayload\x12\x11\n\x04size\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x18\n\x0bsha256_hash\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x03uri\x18\x04 \x01(\tH\x02\x88\x01\x01\x12;\n\x08\x65ncoding\x18\x05 \x01(\x0e\x32$.executor_api_pb.DataPayloadEncodingH\x03\x88\x01\x01\x12\x1d\n\x10\x65ncoding_version\x18\x06 \x01(\x04H\x04\x88\x01\x01\x42\x07\n\x05_sizeB\x0e\n\x0c_sha256_hashB\x06\n\x04_uriB\x0b\n\t_encodingB\x13\n\x11_encoding_version"e\n\x0cGPUResources\x12\x12\n\x05\x63ount\x18\x01 \x01(\rH\x00\x88\x01\x01\x12-\n\x05model\x18\x02 \x01(\x0e\x32\x19.executor_api_pb.GPUModelH\x01\x88\x01\x01\x42\x08\n\x06_countB\x08\n\x06_model"\xc2\x01\n\rHostResources\x12\x16\n\tcpu_count\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmemory_bytes\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x17\n\ndisk_bytes\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12/\n\x03gpu\x18\x04 \x01(\x0b\x32\x1d.executor_api_pb.GPUResourcesH\x03\x88\x01\x01\x42\x0c\n\n_cpu_countB\x0f\n\r_memory_bytesB\r\n\x0b_disk_bytesB\x06\n\x04_gpu"\xbb\x01\n\x0f\x41llowedFunction\x12\x16\n\tnamespace\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ngraph_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rgraph_version\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_function_nameB\x10\n\x0e_graph_version"\xc5\x01\n\x19\x46unctionExecutorResources\x12\x1b\n\x0e\x63pu_ms_per_sec\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x19\n\x0cmemory_bytes\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x17\n\ndisk_bytes\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12\x16\n\tgpu_count\x18\x04 \x01(\rH\x03\x88\x01\x01\x42\x11\n\x0f_cpu_ms_per_secB\x0f\n\r_memory_bytesB\r\n\x0b_disk_bytesB\x0c\n\n_gpu_count"\xed\x03\n\x1b\x46unctionExecutorDescription\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tnamespace\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\ngraph_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rgraph_version\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x16\n\timage_uri\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x14\n\x0csecret_names\x18\x07 \x03(\t\x12%\n\x18\x63ustomer_code_timeout_ms\x18\t \x01(\rH\x06\x88\x01\x01\x12\x30\n\x05graph\x18\n \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\x07\x88\x01\x01\x12\x42\n\tresources\x18\x0b \x01(\x0b\x32*.executor_api_pb.FunctionExecutorResourcesH\x08\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_graph_versionB\x10\n\x0e_function_nameB\x0c\n\n_image_uriB\x1b\n\x19_customer_code_timeout_msB\x08\n\x06_graphB\x0c\n\n_resources"\xa4\x02\n\x15\x46unctionExecutorState\x12\x46\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32,.executor_api_pb.FunctionExecutorDescriptionH\x00\x88\x01\x01\x12<\n\x06status\x18\x02 \x01(\x0e\x32\'.executor_api_pb.FunctionExecutorStatusH\x01\x88\x01\x01\x12S\n\x12termination_reason\x18\x03 \x01(\x0e\x32\x32.executor_api_pb.FunctionExecutorTerminationReasonH\x02\x88\x01\x01\x42\x0e\n\x0c_descriptionB\t\n\x07_statusB\x15\n\x13_termination_reason"\xce\x05\n\rExecutorState\x12\x18\n\x0b\x65xecutor_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08hostname\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x07version\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x34\n\x06status\x18\x06 \x01(\x0e\x32\x1f.executor_api_pb.ExecutorStatusH\x03\x88\x01\x01\x12<\n\x0ftotal_resources\x18\r \x01(\x0b\x32\x1e.executor_api_pb.HostResourcesH\x04\x88\x01\x01\x12N\n!total_function_executor_resources\x18\x07 \x01(\x0b\x32\x1e.executor_api_pb.HostResourcesH\x05\x88\x01\x01\x12;\n\x11\x61llowed_functions\x18\x08 \x03(\x0b\x32 .executor_api_pb.AllowedFunction\x12H\n\x18\x66unction_executor_states\x18\t \x03(\x0b\x32&.executor_api_pb.FunctionExecutorState\x12:\n\x06labels\x18\n \x03(\x0b\x32*.executor_api_pb.ExecutorState.LabelsEntry\x12\x17\n\nstate_hash\x18\x0b \x01(\tH\x06\x88\x01\x01\x12\x19\n\x0cserver_clock\x18\x0c \x01(\x04H\x07\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0e\n\x0c_executor_idB\x0b\n\t_hostnameB\n\n\x08_versionB\t\n\x07_statusB\x12\n\x10_total_resourcesB$\n"_total_function_executor_resourcesB\r\n\x0b_state_hashB\x0f\n\r_server_clock"\x9f\x01\n\x1aReportExecutorStateRequest\x12;\n\x0e\x65xecutor_state\x18\x01 \x01(\x0b\x32\x1e.executor_api_pb.ExecutorStateH\x00\x88\x01\x01\x12\x31\n\x0ctask_results\x18\x02 \x03(\x0b\x32\x1b.executor_api_pb.TaskResultB\x11\n\x0f_executor_state"\x1d\n\x1bReportExecutorStateResponse"\xcf\x01\n\x0fTaskRetryPolicy\x12\x18\n\x0bmax_retries\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x1d\n\x10initial_delay_ms\x18\x02 \x01(\rH\x01\x88\x01\x01\x12\x19\n\x0cmax_delay_ms\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\x1d\n\x10\x64\x65lay_multiplier\x18\x04 \x01(\rH\x03\x88\x01\x01\x42\x0e\n\x0c_max_retriesB\x13\n\x11_initial_delay_msB\x0f\n\r_max_delay_msB\x13\n\x11_delay_multiplier"\xc6\x04\n\x04Task\x12\x0f\n\x02id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tnamespace\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\ngraph_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rgraph_version\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x05 \x01(\tH\x04\x88\x01\x01\x12 \n\x13graph_invocation_id\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x17\n\ntimeout_ms\x18\n \x01(\rH\x06\x88\x01\x01\x12\x30\n\x05input\x18\x0b \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\x07\x88\x01\x01\x12\x38\n\rreducer_input\x18\x0c \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\x08\x88\x01\x01\x12&\n\x19output_payload_uri_prefix\x18\r \x01(\tH\t\x88\x01\x01\x12;\n\x0cretry_policy\x18\x0e \x01(\x0b\x32 .executor_api_pb.TaskRetryPolicyH\n\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_graph_versionB\x10\n\x0e_function_nameB\x16\n\x14_graph_invocation_idB\r\n\x0b_timeout_msB\x08\n\x06_inputB\x10\n\x0e_reducer_inputB\x1c\n\x1a_output_payload_uri_prefixB\x0f\n\r_retry_policy"\xad\x01\n\x0eTaskAllocation\x12!\n\x14\x66unction_executor_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12(\n\x04task\x18\x02 \x01(\x0b\x32\x15.executor_api_pb.TaskH\x01\x88\x01\x01\x12\x1a\n\rallocation_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x17\n\x15_function_executor_idB\x07\n\x05_taskB\x10\n\x0e_allocation_id"K\n\x1fGetDesiredExecutorStatesRequest\x12\x18\n\x0b\x65xecutor_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_executor_id"\xb9\x01\n\x14\x44\x65siredExecutorState\x12H\n\x12\x66unction_executors\x18\x01 \x03(\x0b\x32,.executor_api_pb.FunctionExecutorDescription\x12\x39\n\x10task_allocations\x18\x02 \x03(\x0b\x32\x1f.executor_api_pb.TaskAllocation\x12\x12\n\x05\x63lock\x18\x03 \x01(\x04H\x00\x88\x01\x01\x42\x08\n\x06_clock"\'\n\rResultRouting\x12\x16\n\x0enext_functions\x18\x01 \x03(\t"\xd3\x05\n\nTaskResult\x12\x14\n\x07task_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tnamespace\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\ngraph_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1a\n\rfunction_name\x18\x04 \x01(\tH\x03\x88\x01\x01\x12 \n\x13graph_invocation_id\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x14\n\x07reducer\x18\x06 \x01(\x08H\x05\x88\x01\x01\x12;\n\x0coutcome_code\x18\x07 \x01(\x0e\x32 .executor_api_pb.TaskOutcomeCodeH\x06\x88\x01\x01\x12?\n\x0e\x66\x61ilure_reason\x18\x08 \x01(\x0e\x32".executor_api_pb.TaskFailureReasonH\x07\x88\x01\x01\x12\x16\n\x0enext_functions\x18\t \x03(\t\x12\x36\n\x10\x66unction_outputs\x18\n \x03(\x0b\x32\x1c.executor_api_pb.DataPayload\x12\x31\n\x06stdout\x18\x0b \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\x08\x88\x01\x01\x12\x31\n\x06stderr\x18\x0c \x01(\x0b\x32\x1c.executor_api_pb.DataPayloadH\t\x88\x01\x01\x12\x1a\n\rallocation_id\x18\r \x01(\tH\n\x88\x01\x01\x12/\n\x07routing\x18\x0e \x01(\x0b\x32\x1e.executor_api_pb.ResultRoutingB\n\n\x08_task_idB\x0c\n\n_namespaceB\r\n\x0b_graph_nameB\x10\n\x0e_function_nameB\x16\n\x14_graph_invocation_idB\n\n\x08_reducerB\x0f\n\r_outcome_codeB\x11\n\x0f_failure_reasonB\t\n\x07_stdoutB\t\n\x07_stderrB\x10\n\x0e_allocation_id*\xab\x01\n\x13\x44\x61taPayloadEncoding\x12!\n\x1d\x44\x41TA_PAYLOAD_ENCODING_UNKNOWN\x10\x00\x12#\n\x1f\x44\x41TA_PAYLOAD_ENCODING_UTF8_JSON\x10\x01\x12#\n\x1f\x44\x41TA_PAYLOAD_ENCODING_UTF8_TEXT\x10\x02\x12\'\n#DATA_PAYLOAD_ENCODING_BINARY_PICKLE\x10\x03*\xd6\x01\n\x08GPUModel\x12\x15\n\x11GPU_MODEL_UNKNOWN\x10\x00\x12\x1e\n\x1aGPU_MODEL_NVIDIA_A100_40GB\x10\x01\x12\x1e\n\x1aGPU_MODEL_NVIDIA_A100_80GB\x10\x02\x12\x1e\n\x1aGPU_MODEL_NVIDIA_H100_80GB\x10\x03\x12\x1d\n\x19GPU_MODEL_NVIDIA_TESLA_T4\x10\x04\x12\x1a\n\x16GPU_MODEL_NVIDIA_A6000\x10\x05\x12\x18\n\x14GPU_MODEL_NVIDIA_A10\x10\x06*\xb3\x01\n\x16\x46unctionExecutorStatus\x12$\n FUNCTION_EXECUTOR_STATUS_UNKNOWN\x10\x00\x12$\n FUNCTION_EXECUTOR_STATUS_PENDING\x10\x01\x12$\n FUNCTION_EXECUTOR_STATUS_RUNNING\x10\x02\x12\'\n#FUNCTION_EXECUTOR_STATUS_TERMINATED\x10\x03*\x95\x05\n!FunctionExecutorTerminationReason\x12\x30\n,FUNCTION_EXECUTOR_TERMINATION_REASON_UNKNOWN\x10\x00\x12\x46\nBFUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_INTERNAL_ERROR\x10\x01\x12\x46\nBFUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_FUNCTION_ERROR\x10\x02\x12H\nDFUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_FUNCTION_TIMEOUT\x10\x03\x12:\n6FUNCTION_EXECUTOR_TERMINATION_REASON_EXECUTOR_SHUTDOWN\x10\n\x12\x43\n?FUNCTION_EXECUTOR_TERMINATION_REASON_REMOVED_FROM_DESIRED_STATE\x10\x0b\x12\x32\n.FUNCTION_EXECUTOR_TERMINATION_REASON_UNHEALTHY\x10\x0c\x12\x37\n3FUNCTION_EXECUTOR_TERMINATION_REASON_INTERNAL_ERROR\x10\r\x12\x39\n5FUNCTION_EXECUTOR_TERMINATION_REASON_FUNCTION_TIMEOUT\x10\x0e\x12;\n7FUNCTION_EXECUTOR_TERMINATION_REASON_FUNCTION_CANCELLED\x10\x0f*\xa5\x01\n\x0e\x45xecutorStatus\x12\x1b\n\x17\x45XECUTOR_STATUS_UNKNOWN\x10\x00\x12\x1f\n\x1b\x45XECUTOR_STATUS_STARTING_UP\x10\x01\x12\x1b\n\x17\x45XECUTOR_STATUS_RUNNING\x10\x02\x12\x1b\n\x17\x45XECUTOR_STATUS_DRAINED\x10\x03\x12\x1b\n\x17\x45XECUTOR_STATUS_STOPPED\x10\x04*n\n\x0fTaskOutcomeCode\x12\x1d\n\x19TASK_OUTCOME_CODE_UNKNOWN\x10\x00\x12\x1d\n\x19TASK_OUTCOME_CODE_SUCCESS\x10\x01\x12\x1d\n\x19TASK_OUTCOME_CODE_FAILURE\x10\x02*\x8c\x02\n\x11TaskFailureReason\x12\x1f\n\x1bTASK_FAILURE_REASON_UNKNOWN\x10\x00\x12&\n"TASK_FAILURE_REASON_INTERNAL_ERROR\x10\x01\x12&\n"TASK_FAILURE_REASON_FUNCTION_ERROR\x10\x02\x12(\n$TASK_FAILURE_REASON_FUNCTION_TIMEOUT\x10\x03\x12&\n"TASK_FAILURE_REASON_TASK_CANCELLED\x10\x04\x12\x34\n0TASK_FAILURE_REASON_FUNCTION_EXECUTOR_TERMINATED\x10\x05\x32\xff\x01\n\x0b\x45xecutorAPI\x12t\n\x15report_executor_state\x12+.executor_api_pb.ReportExecutorStateRequest\x1a,.executor_api_pb.ReportExecutorStateResponse"\x00\x12z\n\x1bget_desired_executor_states\x12\x30.executor_api_pb.GetDesiredExecutorStatesRequest\x1a%.executor_api_pb.DesiredExecutorState"\x00\x30\x01\x62\x06proto3'
|
23
23
|
)
|
24
24
|
|
25
25
|
_globals = globals()
|
@@ -31,56 +31,56 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
31
31
|
DESCRIPTOR._loaded_options = None
|
32
32
|
_globals["_EXECUTORSTATE_LABELSENTRY"]._loaded_options = None
|
33
33
|
_globals["_EXECUTORSTATE_LABELSENTRY"]._serialized_options = b"8\001"
|
34
|
-
_globals["_DATAPAYLOADENCODING"]._serialized_start =
|
35
|
-
_globals["_DATAPAYLOADENCODING"]._serialized_end =
|
36
|
-
_globals["_GPUMODEL"]._serialized_start =
|
37
|
-
_globals["_GPUMODEL"]._serialized_end =
|
38
|
-
_globals["_FUNCTIONEXECUTORSTATUS"]._serialized_start =
|
39
|
-
_globals["_FUNCTIONEXECUTORSTATUS"]._serialized_end =
|
40
|
-
_globals["
|
41
|
-
_globals["
|
42
|
-
_globals["
|
43
|
-
_globals["
|
44
|
-
_globals["
|
45
|
-
_globals["
|
46
|
-
_globals["
|
47
|
-
_globals["
|
34
|
+
_globals["_DATAPAYLOADENCODING"]._serialized_start = 4691
|
35
|
+
_globals["_DATAPAYLOADENCODING"]._serialized_end = 4862
|
36
|
+
_globals["_GPUMODEL"]._serialized_start = 4865
|
37
|
+
_globals["_GPUMODEL"]._serialized_end = 5079
|
38
|
+
_globals["_FUNCTIONEXECUTORSTATUS"]._serialized_start = 5082
|
39
|
+
_globals["_FUNCTIONEXECUTORSTATUS"]._serialized_end = 5261
|
40
|
+
_globals["_FUNCTIONEXECUTORTERMINATIONREASON"]._serialized_start = 5264
|
41
|
+
_globals["_FUNCTIONEXECUTORTERMINATIONREASON"]._serialized_end = 5925
|
42
|
+
_globals["_EXECUTORSTATUS"]._serialized_start = 5928
|
43
|
+
_globals["_EXECUTORSTATUS"]._serialized_end = 6093
|
44
|
+
_globals["_TASKOUTCOMECODE"]._serialized_start = 6095
|
45
|
+
_globals["_TASKOUTCOMECODE"]._serialized_end = 6205
|
46
|
+
_globals["_TASKFAILUREREASON"]._serialized_start = 6208
|
47
|
+
_globals["_TASKFAILUREREASON"]._serialized_end = 6476
|
48
48
|
_globals["_DATAPAYLOAD"]._serialized_start = 55
|
49
|
-
_globals["_DATAPAYLOAD"]._serialized_end =
|
50
|
-
_globals["_GPURESOURCES"]._serialized_start =
|
51
|
-
_globals["_GPURESOURCES"]._serialized_end =
|
52
|
-
_globals["_HOSTRESOURCES"]._serialized_start =
|
53
|
-
_globals["_HOSTRESOURCES"]._serialized_end =
|
54
|
-
_globals["_ALLOWEDFUNCTION"]._serialized_start =
|
55
|
-
_globals["_ALLOWEDFUNCTION"]._serialized_end =
|
56
|
-
_globals["_FUNCTIONEXECUTORRESOURCES"]._serialized_start =
|
57
|
-
_globals["_FUNCTIONEXECUTORRESOURCES"]._serialized_end =
|
58
|
-
_globals["_FUNCTIONEXECUTORDESCRIPTION"]._serialized_start =
|
59
|
-
_globals["_FUNCTIONEXECUTORDESCRIPTION"]._serialized_end =
|
60
|
-
_globals["_FUNCTIONEXECUTORSTATE"]._serialized_start =
|
61
|
-
_globals["_FUNCTIONEXECUTORSTATE"]._serialized_end =
|
62
|
-
_globals["_EXECUTORSTATE"]._serialized_start =
|
63
|
-
_globals["_EXECUTORSTATE"]._serialized_end =
|
64
|
-
_globals["_EXECUTORSTATE_LABELSENTRY"]._serialized_start =
|
65
|
-
_globals["_EXECUTORSTATE_LABELSENTRY"]._serialized_end =
|
66
|
-
_globals["_REPORTEXECUTORSTATEREQUEST"]._serialized_start =
|
67
|
-
_globals["_REPORTEXECUTORSTATEREQUEST"]._serialized_end =
|
68
|
-
_globals["_REPORTEXECUTORSTATERESPONSE"]._serialized_start =
|
69
|
-
_globals["_REPORTEXECUTORSTATERESPONSE"]._serialized_end =
|
70
|
-
_globals["_TASKRETRYPOLICY"]._serialized_start =
|
71
|
-
_globals["_TASKRETRYPOLICY"]._serialized_end =
|
72
|
-
_globals["_TASK"]._serialized_start =
|
73
|
-
_globals["_TASK"]._serialized_end =
|
74
|
-
_globals["_TASKALLOCATION"]._serialized_start =
|
75
|
-
_globals["_TASKALLOCATION"]._serialized_end =
|
76
|
-
_globals["_GETDESIREDEXECUTORSTATESREQUEST"]._serialized_start =
|
77
|
-
_globals["_GETDESIREDEXECUTORSTATESREQUEST"]._serialized_end =
|
78
|
-
_globals["_DESIREDEXECUTORSTATE"]._serialized_start =
|
79
|
-
_globals["_DESIREDEXECUTORSTATE"]._serialized_end =
|
80
|
-
_globals["
|
81
|
-
_globals["
|
82
|
-
_globals["
|
83
|
-
_globals["
|
84
|
-
_globals["_EXECUTORAPI"]._serialized_start =
|
85
|
-
_globals["_EXECUTORAPI"]._serialized_end =
|
49
|
+
_globals["_DATAPAYLOAD"]._serialized_end = 290
|
50
|
+
_globals["_GPURESOURCES"]._serialized_start = 292
|
51
|
+
_globals["_GPURESOURCES"]._serialized_end = 393
|
52
|
+
_globals["_HOSTRESOURCES"]._serialized_start = 396
|
53
|
+
_globals["_HOSTRESOURCES"]._serialized_end = 590
|
54
|
+
_globals["_ALLOWEDFUNCTION"]._serialized_start = 593
|
55
|
+
_globals["_ALLOWEDFUNCTION"]._serialized_end = 780
|
56
|
+
_globals["_FUNCTIONEXECUTORRESOURCES"]._serialized_start = 783
|
57
|
+
_globals["_FUNCTIONEXECUTORRESOURCES"]._serialized_end = 980
|
58
|
+
_globals["_FUNCTIONEXECUTORDESCRIPTION"]._serialized_start = 983
|
59
|
+
_globals["_FUNCTIONEXECUTORDESCRIPTION"]._serialized_end = 1476
|
60
|
+
_globals["_FUNCTIONEXECUTORSTATE"]._serialized_start = 1479
|
61
|
+
_globals["_FUNCTIONEXECUTORSTATE"]._serialized_end = 1771
|
62
|
+
_globals["_EXECUTORSTATE"]._serialized_start = 1774
|
63
|
+
_globals["_EXECUTORSTATE"]._serialized_end = 2492
|
64
|
+
_globals["_EXECUTORSTATE_LABELSENTRY"]._serialized_start = 2305
|
65
|
+
_globals["_EXECUTORSTATE_LABELSENTRY"]._serialized_end = 2350
|
66
|
+
_globals["_REPORTEXECUTORSTATEREQUEST"]._serialized_start = 2495
|
67
|
+
_globals["_REPORTEXECUTORSTATEREQUEST"]._serialized_end = 2654
|
68
|
+
_globals["_REPORTEXECUTORSTATERESPONSE"]._serialized_start = 2656
|
69
|
+
_globals["_REPORTEXECUTORSTATERESPONSE"]._serialized_end = 2685
|
70
|
+
_globals["_TASKRETRYPOLICY"]._serialized_start = 2688
|
71
|
+
_globals["_TASKRETRYPOLICY"]._serialized_end = 2895
|
72
|
+
_globals["_TASK"]._serialized_start = 2898
|
73
|
+
_globals["_TASK"]._serialized_end = 3480
|
74
|
+
_globals["_TASKALLOCATION"]._serialized_start = 3483
|
75
|
+
_globals["_TASKALLOCATION"]._serialized_end = 3656
|
76
|
+
_globals["_GETDESIREDEXECUTORSTATESREQUEST"]._serialized_start = 3658
|
77
|
+
_globals["_GETDESIREDEXECUTORSTATESREQUEST"]._serialized_end = 3733
|
78
|
+
_globals["_DESIREDEXECUTORSTATE"]._serialized_start = 3736
|
79
|
+
_globals["_DESIREDEXECUTORSTATE"]._serialized_end = 3921
|
80
|
+
_globals["_RESULTROUTING"]._serialized_start = 3923
|
81
|
+
_globals["_RESULTROUTING"]._serialized_end = 3962
|
82
|
+
_globals["_TASKRESULT"]._serialized_start = 3965
|
83
|
+
_globals["_TASKRESULT"]._serialized_end = 4688
|
84
|
+
_globals["_EXECUTORAPI"]._serialized_start = 6479
|
85
|
+
_globals["_EXECUTORAPI"]._serialized_end = 6734
|
86
86
|
# @@protoc_insertion_point(module_scope)
|
@@ -31,19 +31,44 @@ class GPUModel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
31
31
|
class FunctionExecutorStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
32
32
|
__slots__ = ()
|
33
33
|
FUNCTION_EXECUTOR_STATUS_UNKNOWN: _ClassVar[FunctionExecutorStatus]
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
FUNCTION_EXECUTOR_STATUS_PENDING: _ClassVar[FunctionExecutorStatus]
|
35
|
+
FUNCTION_EXECUTOR_STATUS_RUNNING: _ClassVar[FunctionExecutorStatus]
|
36
|
+
FUNCTION_EXECUTOR_STATUS_TERMINATED: _ClassVar[FunctionExecutorStatus]
|
37
|
+
|
38
|
+
class FunctionExecutorTerminationReason(
|
39
|
+
int, metaclass=_enum_type_wrapper.EnumTypeWrapper
|
40
|
+
):
|
41
|
+
__slots__ = ()
|
42
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_UNKNOWN: _ClassVar[
|
43
|
+
FunctionExecutorTerminationReason
|
44
|
+
]
|
45
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_INTERNAL_ERROR: _ClassVar[
|
46
|
+
FunctionExecutorTerminationReason
|
47
|
+
]
|
48
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_FUNCTION_ERROR: _ClassVar[
|
49
|
+
FunctionExecutorTerminationReason
|
50
|
+
]
|
51
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_FUNCTION_TIMEOUT: _ClassVar[
|
52
|
+
FunctionExecutorTerminationReason
|
53
|
+
]
|
54
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_EXECUTOR_SHUTDOWN: _ClassVar[
|
55
|
+
FunctionExecutorTerminationReason
|
37
56
|
]
|
38
|
-
|
39
|
-
|
57
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_REMOVED_FROM_DESIRED_STATE: _ClassVar[
|
58
|
+
FunctionExecutorTerminationReason
|
59
|
+
]
|
60
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_UNHEALTHY: _ClassVar[
|
61
|
+
FunctionExecutorTerminationReason
|
62
|
+
]
|
63
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_INTERNAL_ERROR: _ClassVar[
|
64
|
+
FunctionExecutorTerminationReason
|
65
|
+
]
|
66
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_FUNCTION_TIMEOUT: _ClassVar[
|
67
|
+
FunctionExecutorTerminationReason
|
68
|
+
]
|
69
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_FUNCTION_CANCELLED: _ClassVar[
|
70
|
+
FunctionExecutorTerminationReason
|
40
71
|
]
|
41
|
-
FUNCTION_EXECUTOR_STATUS_IDLE: _ClassVar[FunctionExecutorStatus]
|
42
|
-
FUNCTION_EXECUTOR_STATUS_RUNNING_TASK: _ClassVar[FunctionExecutorStatus]
|
43
|
-
FUNCTION_EXECUTOR_STATUS_UNHEALTHY: _ClassVar[FunctionExecutorStatus]
|
44
|
-
FUNCTION_EXECUTOR_STATUS_STOPPING: _ClassVar[FunctionExecutorStatus]
|
45
|
-
FUNCTION_EXECUTOR_STATUS_STOPPED: _ClassVar[FunctionExecutorStatus]
|
46
|
-
FUNCTION_EXECUTOR_STATUS_SHUTDOWN: _ClassVar[FunctionExecutorStatus]
|
47
72
|
|
48
73
|
class ExecutorStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
49
74
|
__slots__ = ()
|
@@ -51,27 +76,22 @@ class ExecutorStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
51
76
|
EXECUTOR_STATUS_STARTING_UP: _ClassVar[ExecutorStatus]
|
52
77
|
EXECUTOR_STATUS_RUNNING: _ClassVar[ExecutorStatus]
|
53
78
|
EXECUTOR_STATUS_DRAINED: _ClassVar[ExecutorStatus]
|
54
|
-
EXECUTOR_STATUS_STOPPING: _ClassVar[ExecutorStatus]
|
55
79
|
EXECUTOR_STATUS_STOPPED: _ClassVar[ExecutorStatus]
|
56
80
|
|
57
|
-
class
|
58
|
-
__slots__ = ()
|
59
|
-
EXECUTOR_FLAVOR_UNKNOWN: _ClassVar[ExecutorFlavor]
|
60
|
-
EXECUTOR_FLAVOR_OSS: _ClassVar[ExecutorFlavor]
|
61
|
-
EXECUTOR_FLAVOR_PLATFORM: _ClassVar[ExecutorFlavor]
|
62
|
-
|
63
|
-
class TaskOutcome(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
81
|
+
class TaskOutcomeCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
64
82
|
__slots__ = ()
|
65
|
-
|
66
|
-
|
67
|
-
|
83
|
+
TASK_OUTCOME_CODE_UNKNOWN: _ClassVar[TaskOutcomeCode]
|
84
|
+
TASK_OUTCOME_CODE_SUCCESS: _ClassVar[TaskOutcomeCode]
|
85
|
+
TASK_OUTCOME_CODE_FAILURE: _ClassVar[TaskOutcomeCode]
|
68
86
|
|
69
|
-
class
|
87
|
+
class TaskFailureReason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
70
88
|
__slots__ = ()
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
89
|
+
TASK_FAILURE_REASON_UNKNOWN: _ClassVar[TaskFailureReason]
|
90
|
+
TASK_FAILURE_REASON_INTERNAL_ERROR: _ClassVar[TaskFailureReason]
|
91
|
+
TASK_FAILURE_REASON_FUNCTION_ERROR: _ClassVar[TaskFailureReason]
|
92
|
+
TASK_FAILURE_REASON_FUNCTION_TIMEOUT: _ClassVar[TaskFailureReason]
|
93
|
+
TASK_FAILURE_REASON_TASK_CANCELLED: _ClassVar[TaskFailureReason]
|
94
|
+
TASK_FAILURE_REASON_FUNCTION_EXECUTOR_TERMINATED: _ClassVar[TaskFailureReason]
|
75
95
|
|
76
96
|
DATA_PAYLOAD_ENCODING_UNKNOWN: DataPayloadEncoding
|
77
97
|
DATA_PAYLOAD_ENCODING_UTF8_JSON: DataPayloadEncoding
|
@@ -85,41 +105,53 @@ GPU_MODEL_NVIDIA_TESLA_T4: GPUModel
|
|
85
105
|
GPU_MODEL_NVIDIA_A6000: GPUModel
|
86
106
|
GPU_MODEL_NVIDIA_A10: GPUModel
|
87
107
|
FUNCTION_EXECUTOR_STATUS_UNKNOWN: FunctionExecutorStatus
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
108
|
+
FUNCTION_EXECUTOR_STATUS_PENDING: FunctionExecutorStatus
|
109
|
+
FUNCTION_EXECUTOR_STATUS_RUNNING: FunctionExecutorStatus
|
110
|
+
FUNCTION_EXECUTOR_STATUS_TERMINATED: FunctionExecutorStatus
|
111
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_UNKNOWN: FunctionExecutorTerminationReason
|
112
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_INTERNAL_ERROR: (
|
113
|
+
FunctionExecutorTerminationReason
|
114
|
+
)
|
115
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_FUNCTION_ERROR: (
|
116
|
+
FunctionExecutorTerminationReason
|
117
|
+
)
|
118
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_STARTUP_FAILED_FUNCTION_TIMEOUT: (
|
119
|
+
FunctionExecutorTerminationReason
|
120
|
+
)
|
121
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_EXECUTOR_SHUTDOWN: (
|
122
|
+
FunctionExecutorTerminationReason
|
123
|
+
)
|
124
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_REMOVED_FROM_DESIRED_STATE: (
|
125
|
+
FunctionExecutorTerminationReason
|
126
|
+
)
|
127
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_UNHEALTHY: FunctionExecutorTerminationReason
|
128
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_INTERNAL_ERROR: FunctionExecutorTerminationReason
|
129
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_FUNCTION_TIMEOUT: FunctionExecutorTerminationReason
|
130
|
+
FUNCTION_EXECUTOR_TERMINATION_REASON_FUNCTION_CANCELLED: (
|
131
|
+
FunctionExecutorTerminationReason
|
132
|
+
)
|
97
133
|
EXECUTOR_STATUS_UNKNOWN: ExecutorStatus
|
98
134
|
EXECUTOR_STATUS_STARTING_UP: ExecutorStatus
|
99
135
|
EXECUTOR_STATUS_RUNNING: ExecutorStatus
|
100
136
|
EXECUTOR_STATUS_DRAINED: ExecutorStatus
|
101
|
-
EXECUTOR_STATUS_STOPPING: ExecutorStatus
|
102
137
|
EXECUTOR_STATUS_STOPPED: ExecutorStatus
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
OUTPUT_ENCODING_BINARY: OutputEncoding
|
138
|
+
TASK_OUTCOME_CODE_UNKNOWN: TaskOutcomeCode
|
139
|
+
TASK_OUTCOME_CODE_SUCCESS: TaskOutcomeCode
|
140
|
+
TASK_OUTCOME_CODE_FAILURE: TaskOutcomeCode
|
141
|
+
TASK_FAILURE_REASON_UNKNOWN: TaskFailureReason
|
142
|
+
TASK_FAILURE_REASON_INTERNAL_ERROR: TaskFailureReason
|
143
|
+
TASK_FAILURE_REASON_FUNCTION_ERROR: TaskFailureReason
|
144
|
+
TASK_FAILURE_REASON_FUNCTION_TIMEOUT: TaskFailureReason
|
145
|
+
TASK_FAILURE_REASON_TASK_CANCELLED: TaskFailureReason
|
146
|
+
TASK_FAILURE_REASON_FUNCTION_EXECUTOR_TERMINATED: TaskFailureReason
|
113
147
|
|
114
148
|
class DataPayload(_message.Message):
|
115
|
-
__slots__ = ("
|
116
|
-
PATH_FIELD_NUMBER: _ClassVar[int]
|
149
|
+
__slots__ = ("size", "sha256_hash", "uri", "encoding", "encoding_version")
|
117
150
|
SIZE_FIELD_NUMBER: _ClassVar[int]
|
118
151
|
SHA256_HASH_FIELD_NUMBER: _ClassVar[int]
|
119
152
|
URI_FIELD_NUMBER: _ClassVar[int]
|
120
153
|
ENCODING_FIELD_NUMBER: _ClassVar[int]
|
121
154
|
ENCODING_VERSION_FIELD_NUMBER: _ClassVar[int]
|
122
|
-
path: str
|
123
155
|
size: int
|
124
156
|
sha256_hash: str
|
125
157
|
uri: str
|
@@ -127,7 +159,6 @@ class DataPayload(_message.Message):
|
|
127
159
|
encoding_version: int
|
128
160
|
def __init__(
|
129
161
|
self,
|
130
|
-
path: _Optional[str] = ...,
|
131
162
|
size: _Optional[int] = ...,
|
132
163
|
sha256_hash: _Optional[str] = ...,
|
133
164
|
uri: _Optional[str] = ...,
|
@@ -208,7 +239,6 @@ class FunctionExecutorDescription(_message.Message):
|
|
208
239
|
"function_name",
|
209
240
|
"image_uri",
|
210
241
|
"secret_names",
|
211
|
-
"resource_limits",
|
212
242
|
"customer_code_timeout_ms",
|
213
243
|
"graph",
|
214
244
|
"resources",
|
@@ -220,7 +250,6 @@ class FunctionExecutorDescription(_message.Message):
|
|
220
250
|
FUNCTION_NAME_FIELD_NUMBER: _ClassVar[int]
|
221
251
|
IMAGE_URI_FIELD_NUMBER: _ClassVar[int]
|
222
252
|
SECRET_NAMES_FIELD_NUMBER: _ClassVar[int]
|
223
|
-
RESOURCE_LIMITS_FIELD_NUMBER: _ClassVar[int]
|
224
253
|
CUSTOMER_CODE_TIMEOUT_MS_FIELD_NUMBER: _ClassVar[int]
|
225
254
|
GRAPH_FIELD_NUMBER: _ClassVar[int]
|
226
255
|
RESOURCES_FIELD_NUMBER: _ClassVar[int]
|
@@ -231,7 +260,6 @@ class FunctionExecutorDescription(_message.Message):
|
|
231
260
|
function_name: str
|
232
261
|
image_uri: str
|
233
262
|
secret_names: _containers.RepeatedScalarFieldContainer[str]
|
234
|
-
resource_limits: HostResources
|
235
263
|
customer_code_timeout_ms: int
|
236
264
|
graph: DataPayload
|
237
265
|
resources: FunctionExecutorResources
|
@@ -244,30 +272,32 @@ class FunctionExecutorDescription(_message.Message):
|
|
244
272
|
function_name: _Optional[str] = ...,
|
245
273
|
image_uri: _Optional[str] = ...,
|
246
274
|
secret_names: _Optional[_Iterable[str]] = ...,
|
247
|
-
resource_limits: _Optional[_Union[HostResources, _Mapping]] = ...,
|
248
275
|
customer_code_timeout_ms: _Optional[int] = ...,
|
249
276
|
graph: _Optional[_Union[DataPayload, _Mapping]] = ...,
|
250
277
|
resources: _Optional[_Union[FunctionExecutorResources, _Mapping]] = ...,
|
251
278
|
) -> None: ...
|
252
279
|
|
253
280
|
class FunctionExecutorState(_message.Message):
|
254
|
-
__slots__ = ("description", "status")
|
281
|
+
__slots__ = ("description", "status", "termination_reason")
|
255
282
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
256
283
|
STATUS_FIELD_NUMBER: _ClassVar[int]
|
284
|
+
TERMINATION_REASON_FIELD_NUMBER: _ClassVar[int]
|
257
285
|
description: FunctionExecutorDescription
|
258
286
|
status: FunctionExecutorStatus
|
287
|
+
termination_reason: FunctionExecutorTerminationReason
|
259
288
|
def __init__(
|
260
289
|
self,
|
261
290
|
description: _Optional[_Union[FunctionExecutorDescription, _Mapping]] = ...,
|
262
291
|
status: _Optional[_Union[FunctionExecutorStatus, str]] = ...,
|
292
|
+
termination_reason: _Optional[
|
293
|
+
_Union[FunctionExecutorTerminationReason, str]
|
294
|
+
] = ...,
|
263
295
|
) -> None: ...
|
264
296
|
|
265
297
|
class ExecutorState(_message.Message):
|
266
298
|
__slots__ = (
|
267
299
|
"executor_id",
|
268
|
-
"development_mode",
|
269
300
|
"hostname",
|
270
|
-
"flavor",
|
271
301
|
"version",
|
272
302
|
"status",
|
273
303
|
"total_resources",
|
@@ -290,9 +320,7 @@ class ExecutorState(_message.Message):
|
|
290
320
|
) -> None: ...
|
291
321
|
|
292
322
|
EXECUTOR_ID_FIELD_NUMBER: _ClassVar[int]
|
293
|
-
DEVELOPMENT_MODE_FIELD_NUMBER: _ClassVar[int]
|
294
323
|
HOSTNAME_FIELD_NUMBER: _ClassVar[int]
|
295
|
-
FLAVOR_FIELD_NUMBER: _ClassVar[int]
|
296
324
|
VERSION_FIELD_NUMBER: _ClassVar[int]
|
297
325
|
STATUS_FIELD_NUMBER: _ClassVar[int]
|
298
326
|
TOTAL_RESOURCES_FIELD_NUMBER: _ClassVar[int]
|
@@ -303,9 +331,7 @@ class ExecutorState(_message.Message):
|
|
303
331
|
STATE_HASH_FIELD_NUMBER: _ClassVar[int]
|
304
332
|
SERVER_CLOCK_FIELD_NUMBER: _ClassVar[int]
|
305
333
|
executor_id: str
|
306
|
-
development_mode: bool
|
307
334
|
hostname: str
|
308
|
-
flavor: ExecutorFlavor
|
309
335
|
version: str
|
310
336
|
status: ExecutorStatus
|
311
337
|
total_resources: HostResources
|
@@ -320,9 +346,7 @@ class ExecutorState(_message.Message):
|
|
320
346
|
def __init__(
|
321
347
|
self,
|
322
348
|
executor_id: _Optional[str] = ...,
|
323
|
-
development_mode: bool = ...,
|
324
349
|
hostname: _Optional[str] = ...,
|
325
|
-
flavor: _Optional[_Union[ExecutorFlavor, str]] = ...,
|
326
350
|
version: _Optional[str] = ...,
|
327
351
|
status: _Optional[_Union[ExecutorStatus, str]] = ...,
|
328
352
|
total_resources: _Optional[_Union[HostResources, _Mapping]] = ...,
|
@@ -341,11 +365,15 @@ class ExecutorState(_message.Message):
|
|
341
365
|
) -> None: ...
|
342
366
|
|
343
367
|
class ReportExecutorStateRequest(_message.Message):
|
344
|
-
__slots__ = ("executor_state",)
|
368
|
+
__slots__ = ("executor_state", "task_results")
|
345
369
|
EXECUTOR_STATE_FIELD_NUMBER: _ClassVar[int]
|
370
|
+
TASK_RESULTS_FIELD_NUMBER: _ClassVar[int]
|
346
371
|
executor_state: ExecutorState
|
372
|
+
task_results: _containers.RepeatedCompositeFieldContainer[TaskResult]
|
347
373
|
def __init__(
|
348
|
-
self,
|
374
|
+
self,
|
375
|
+
executor_state: _Optional[_Union[ExecutorState, _Mapping]] = ...,
|
376
|
+
task_results: _Optional[_Iterable[_Union[TaskResult, _Mapping]]] = ...,
|
349
377
|
) -> None: ...
|
350
378
|
|
351
379
|
class ReportExecutorStateResponse(_message.Message):
|
@@ -378,8 +406,6 @@ class Task(_message.Message):
|
|
378
406
|
"graph_version",
|
379
407
|
"function_name",
|
380
408
|
"graph_invocation_id",
|
381
|
-
"input_key",
|
382
|
-
"reducer_output_key",
|
383
409
|
"timeout_ms",
|
384
410
|
"input",
|
385
411
|
"reducer_input",
|
@@ -392,8 +418,6 @@ class Task(_message.Message):
|
|
392
418
|
GRAPH_VERSION_FIELD_NUMBER: _ClassVar[int]
|
393
419
|
FUNCTION_NAME_FIELD_NUMBER: _ClassVar[int]
|
394
420
|
GRAPH_INVOCATION_ID_FIELD_NUMBER: _ClassVar[int]
|
395
|
-
INPUT_KEY_FIELD_NUMBER: _ClassVar[int]
|
396
|
-
REDUCER_OUTPUT_KEY_FIELD_NUMBER: _ClassVar[int]
|
397
421
|
TIMEOUT_MS_FIELD_NUMBER: _ClassVar[int]
|
398
422
|
INPUT_FIELD_NUMBER: _ClassVar[int]
|
399
423
|
REDUCER_INPUT_FIELD_NUMBER: _ClassVar[int]
|
@@ -405,8 +429,6 @@ class Task(_message.Message):
|
|
405
429
|
graph_version: str
|
406
430
|
function_name: str
|
407
431
|
graph_invocation_id: str
|
408
|
-
input_key: str
|
409
|
-
reducer_output_key: str
|
410
432
|
timeout_ms: int
|
411
433
|
input: DataPayload
|
412
434
|
reducer_input: DataPayload
|
@@ -420,8 +442,6 @@ class Task(_message.Message):
|
|
420
442
|
graph_version: _Optional[str] = ...,
|
421
443
|
function_name: _Optional[str] = ...,
|
422
444
|
graph_invocation_id: _Optional[str] = ...,
|
423
|
-
input_key: _Optional[str] = ...,
|
424
|
-
reducer_output_key: _Optional[str] = ...,
|
425
445
|
timeout_ms: _Optional[int] = ...,
|
426
446
|
input: _Optional[_Union[DataPayload, _Mapping]] = ...,
|
427
447
|
reducer_input: _Optional[_Union[DataPayload, _Mapping]] = ...,
|
@@ -430,15 +450,18 @@ class Task(_message.Message):
|
|
430
450
|
) -> None: ...
|
431
451
|
|
432
452
|
class TaskAllocation(_message.Message):
|
433
|
-
__slots__ = ("function_executor_id", "task")
|
453
|
+
__slots__ = ("function_executor_id", "task", "allocation_id")
|
434
454
|
FUNCTION_EXECUTOR_ID_FIELD_NUMBER: _ClassVar[int]
|
435
455
|
TASK_FIELD_NUMBER: _ClassVar[int]
|
456
|
+
ALLOCATION_ID_FIELD_NUMBER: _ClassVar[int]
|
436
457
|
function_executor_id: str
|
437
458
|
task: Task
|
459
|
+
allocation_id: str
|
438
460
|
def __init__(
|
439
461
|
self,
|
440
462
|
function_executor_id: _Optional[str] = ...,
|
441
463
|
task: _Optional[_Union[Task, _Mapping]] = ...,
|
464
|
+
allocation_id: _Optional[str] = ...,
|
442
465
|
) -> None: ...
|
443
466
|
|
444
467
|
class GetDesiredExecutorStatesRequest(_message.Message):
|
@@ -466,54 +489,57 @@ class DesiredExecutorState(_message.Message):
|
|
466
489
|
clock: _Optional[int] = ...,
|
467
490
|
) -> None: ...
|
468
491
|
|
469
|
-
class
|
492
|
+
class ResultRouting(_message.Message):
|
493
|
+
__slots__ = ("next_functions",)
|
494
|
+
NEXT_FUNCTIONS_FIELD_NUMBER: _ClassVar[int]
|
495
|
+
next_functions: _containers.RepeatedScalarFieldContainer[str]
|
496
|
+
def __init__(self, next_functions: _Optional[_Iterable[str]] = ...) -> None: ...
|
497
|
+
|
498
|
+
class TaskResult(_message.Message):
|
470
499
|
__slots__ = (
|
471
500
|
"task_id",
|
472
501
|
"namespace",
|
473
502
|
"graph_name",
|
474
503
|
"function_name",
|
475
504
|
"graph_invocation_id",
|
476
|
-
"outcome",
|
477
|
-
"invocation_id",
|
478
|
-
"executor_id",
|
479
505
|
"reducer",
|
506
|
+
"outcome_code",
|
507
|
+
"failure_reason",
|
480
508
|
"next_functions",
|
481
|
-
"
|
509
|
+
"function_outputs",
|
482
510
|
"stdout",
|
483
511
|
"stderr",
|
484
|
-
"
|
485
|
-
"
|
512
|
+
"allocation_id",
|
513
|
+
"routing",
|
486
514
|
)
|
487
515
|
TASK_ID_FIELD_NUMBER: _ClassVar[int]
|
488
516
|
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
489
517
|
GRAPH_NAME_FIELD_NUMBER: _ClassVar[int]
|
490
518
|
FUNCTION_NAME_FIELD_NUMBER: _ClassVar[int]
|
491
519
|
GRAPH_INVOCATION_ID_FIELD_NUMBER: _ClassVar[int]
|
492
|
-
OUTCOME_FIELD_NUMBER: _ClassVar[int]
|
493
|
-
INVOCATION_ID_FIELD_NUMBER: _ClassVar[int]
|
494
|
-
EXECUTOR_ID_FIELD_NUMBER: _ClassVar[int]
|
495
520
|
REDUCER_FIELD_NUMBER: _ClassVar[int]
|
521
|
+
OUTCOME_CODE_FIELD_NUMBER: _ClassVar[int]
|
522
|
+
FAILURE_REASON_FIELD_NUMBER: _ClassVar[int]
|
496
523
|
NEXT_FUNCTIONS_FIELD_NUMBER: _ClassVar[int]
|
497
|
-
|
524
|
+
FUNCTION_OUTPUTS_FIELD_NUMBER: _ClassVar[int]
|
498
525
|
STDOUT_FIELD_NUMBER: _ClassVar[int]
|
499
526
|
STDERR_FIELD_NUMBER: _ClassVar[int]
|
500
|
-
|
501
|
-
|
527
|
+
ALLOCATION_ID_FIELD_NUMBER: _ClassVar[int]
|
528
|
+
ROUTING_FIELD_NUMBER: _ClassVar[int]
|
502
529
|
task_id: str
|
503
530
|
namespace: str
|
504
531
|
graph_name: str
|
505
532
|
function_name: str
|
506
533
|
graph_invocation_id: str
|
507
|
-
outcome: TaskOutcome
|
508
|
-
invocation_id: str
|
509
|
-
executor_id: str
|
510
534
|
reducer: bool
|
535
|
+
outcome_code: TaskOutcomeCode
|
536
|
+
failure_reason: TaskFailureReason
|
511
537
|
next_functions: _containers.RepeatedScalarFieldContainer[str]
|
512
|
-
|
538
|
+
function_outputs: _containers.RepeatedCompositeFieldContainer[DataPayload]
|
513
539
|
stdout: DataPayload
|
514
540
|
stderr: DataPayload
|
515
|
-
|
516
|
-
|
541
|
+
allocation_id: str
|
542
|
+
routing: ResultRouting
|
517
543
|
def __init__(
|
518
544
|
self,
|
519
545
|
task_id: _Optional[str] = ...,
|
@@ -521,18 +547,13 @@ class ReportTaskOutcomeRequest(_message.Message):
|
|
521
547
|
graph_name: _Optional[str] = ...,
|
522
548
|
function_name: _Optional[str] = ...,
|
523
549
|
graph_invocation_id: _Optional[str] = ...,
|
524
|
-
outcome: _Optional[_Union[TaskOutcome, str]] = ...,
|
525
|
-
invocation_id: _Optional[str] = ...,
|
526
|
-
executor_id: _Optional[str] = ...,
|
527
550
|
reducer: bool = ...,
|
551
|
+
outcome_code: _Optional[_Union[TaskOutcomeCode, str]] = ...,
|
552
|
+
failure_reason: _Optional[_Union[TaskFailureReason, str]] = ...,
|
528
553
|
next_functions: _Optional[_Iterable[str]] = ...,
|
529
|
-
|
554
|
+
function_outputs: _Optional[_Iterable[_Union[DataPayload, _Mapping]]] = ...,
|
530
555
|
stdout: _Optional[_Union[DataPayload, _Mapping]] = ...,
|
531
556
|
stderr: _Optional[_Union[DataPayload, _Mapping]] = ...,
|
532
|
-
|
533
|
-
|
557
|
+
allocation_id: _Optional[str] = ...,
|
558
|
+
routing: _Optional[_Union[ResultRouting, _Mapping]] = ...,
|
534
559
|
) -> None: ...
|
535
|
-
|
536
|
-
class ReportTaskOutcomeResponse(_message.Message):
|
537
|
-
__slots__ = ()
|
538
|
-
def __init__(self) -> None: ...
|