///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2026 Equinor ASA // // ResInsight is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. // // See the GNU General Public License at // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "RiaHpcDefines.h" #include "RiaWslTools.h" #include #include #include //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- namespace RiaHpcTools { QStringList availableQueues( RiaDefines::BatchSchedulerType scheduler, const RiaWslTools::WslOptions& wslOptions ); QString findJobId( RiaDefines::BatchSchedulerType scheduler, QStringList stdOut ); void stopJob( RiaDefines::BatchSchedulerType scheduler, QString jobId, const RiaWslTools::WslOptions& wslOptions ); std::vector> listJobs( RiaDefines::BatchSchedulerType scheduler, const RiaWslTools::WslOptions& wslOptions ); // helpers QStringList decodeSlurmQueues( QStringList stdOut ); QStringList decodeLsfQueues( QStringList stdOut ); const std::vector> decodeSlurmJobs( QStringList stdOut ); const std::vector> decodeLsfJobs( QStringList stdOut ); } // namespace RiaHpcTools