Skip to content

Commit

Permalink
Fix suspend query ordering in SessionState for one shot
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Nov 9, 2023
1 parent be34bb2 commit 4563ed9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1487,11 +1487,11 @@ public ExportBuilder<T> onSuccess(final Runnable successHandler) {
* @return the submitted export object
*/
public ExportObject<T> submit(final Callable<T> exportMain) {
export.setWork(exportMain, errorHandler, successHandler, requiresSerialQueue);
if (export.queryPerformanceRecorder != null && !export.qprIsForBatch) {
// transfer ownership of the qpr to the export
// transfer ownership of the qpr to the export before it can be resumed by the scheduler
export.queryPerformanceRecorder.suspendQuery();
}
export.setWork(exportMain, errorHandler, successHandler, requiresSerialQueue);
return export;
}

Expand Down

0 comments on commit 4563ed9

Please sign in to comment.