Skip to content
Snippets Groups Projects
Commit 1c6a162c authored by Eric Cano's avatar Eric Cano
Browse files

Added early report of up status for drive.

This will give faster feedback to the operators as they put drives up.
The scheduling can sometimes take a long time and the status update only happened after that.
parent 4b3cf0fa
Branches
Tags
No related merge requests found
......@@ -129,6 +129,8 @@ schedule:
}
// 2b) Get initial mount information
std::unique_ptr<cta::TapeMount> tapeMount;
// As getting next mount could be long, we report the drive as up immediately.
m_scheduler.reportDriveStatus(m_driveInfo, cta::common::dataStructures::MountType::NoMount, cta::common::dataStructures::DriveStatus::Up, lc);
try {
tapeMount.reset(m_scheduler.getNextMount(m_driveConfig.logicalLibrary, m_driveConfig.unitName, lc).release());
} catch (cta::exception::Exception & e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment