File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
ydb/core/kqp/proxy_service Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,8 @@ class TCheckLeaseStatusActor : public TCheckLeaseStatusActorBase {
883
883
};
884
884
885
885
class TForgetScriptExecutionOperationQueryActor : public TQueryBase {
886
- static constexpr i64 MAX_NUMBER_ROWS_IN_BATCH = 10000 ;
886
+ static constexpr i64 MAX_NUMBER_ROWS_IN_BATCH = 100000 ;
887
+ static constexpr TDuration MINIMAL_DEADLINE_TIME = TDuration::Seconds(1 );
887
888
888
889
struct TResultSetDescription {
889
890
i64 MaxRowId;
@@ -894,7 +895,7 @@ class TForgetScriptExecutionOperationQueryActor : public TQueryBase {
894
895
TForgetScriptExecutionOperationQueryActor (const TString& executionId, const TString& database, TInstant operationDeadline)
895
896
: ExecutionId(executionId)
896
897
, Database(database)
897
- , Deadline(GetDeadline( operationDeadline) )
898
+ , Deadline(operationDeadline - MINIMAL_DEADLINE_TIME )
898
899
{}
899
900
900
901
void OnRunQuery () override {
@@ -1030,13 +1031,6 @@ class TForgetScriptExecutionOperationQueryActor : public TQueryBase {
1030
1031
return true ;
1031
1032
}
1032
1033
1033
- static TInstant GetDeadline (TInstant operationDeadline) {
1034
- if (TInstant::Now () >= operationDeadline) {
1035
- return operationDeadline;
1036
- }
1037
- return TInstant::Now () + (operationDeadline - TInstant::Now ()) / 2 ;
1038
- }
1039
-
1040
1034
private:
1041
1035
TString ExecutionId;
1042
1036
TString Database;
You can’t perform that action at this time.
0 commit comments