Skip to content

Commit

Permalink
Add stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Dec 30, 2023
1 parent 5b25662 commit 491cf74
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,14 @@ class Client : public TaskLibClient {
}
HRUN_TASK_NODE_ADMIN_ROOT(StopRuntime);
void StopRuntimeRoot() {
HILOG(kInfo, "Beginning to flush the runtime.\n"
"If you did async I/O, this may take some time.\n"
"All unflushed data will be written to the PFS.")
FlushRoot(DomainId::GetGlobal());
HILOG(kInfo, "Stopping the runtime")
AsyncStopRuntimeRoot(DomainId::GetGlobalMinusLocal());
AsyncStopRuntimeRoot(DomainId::GetLocal());
HILOG(kInfo, "All done!")
}

/** Set work orchestrator queue policy */
Expand Down

0 comments on commit 491cf74

Please sign in to comment.