aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhcpp <hcpp@ydb.tech>2023-12-13 11:59:58 +0300
committerhcpp <hcpp@ydb.tech>2023-12-13 12:43:10 +0300
commit21424fe08068308283c62e2549401e15f964094d (patch)
tree4b142407118a96e96f3fcc82befc69ecd360434e
parent346b5cea9d2700ce87681487b473bdb7a3f481df (diff)
downloadydb-21424fe08068308283c62e2549401e15f964094d.tar.gz
not found behaviour has been changed for get script execution
-rw-r--r--ydb/core/grpc_services/rpc_get_operation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ydb/core/grpc_services/rpc_get_operation.cpp b/ydb/core/grpc_services/rpc_get_operation.cpp
index 7c574d5573..3fdaa8b1d2 100644
--- a/ydb/core/grpc_services/rpc_get_operation.cpp
+++ b/ydb/core/grpc_services/rpc_get_operation.cpp
@@ -243,7 +243,9 @@ private:
void Handle(NKqp::TEvGetScriptExecutionOperationResponse::TPtr& ev, const TActorContext& ctx) {
TEvGetOperationRequest::TResponse resp;
auto deferred = resp.mutable_operation();
- deferred->set_id(GetProtoRequest()->id());
+ if (ev->Get()->Status != Ydb::StatusIds::NOT_FOUND) {
+ deferred->set_id(GetProtoRequest()->id());
+ }
deferred->set_ready(ev->Get()->Ready);
deferred->set_status(ev->Get()->Status);
if (ev->Get()->Issues) {