///////////////////////////////////////////////////////////////////////////////// // // 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 "cafPdmField.h" #include "cafPdmObject.h" //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- class RiaPreferencesBatch : public caf::PdmObject { CAF_PDM_HEADER_INIT; public: RiaPreferencesBatch(); static RiaPreferencesBatch* current(); void appendItems( caf::PdmUiOrdering& uiOrdering ); size_t maxParallelJobs() const; RiaDefines::BatchSchedulerType batchScheduler() const; QString queueName() const; QString batchSchedulerOptions() const; bool exclusiveJob() const; RiaDefines::BatchJobMonitoringType jobMonitoring() const; int secondsToWaitForSubmit() const; int statusRefreshInterval() const; static QString selectQueue( RiaDefines::BatchSchedulerType scheduler, QString currentQueue ); protected: QList calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override; private: caf::PdmField m_maxParallelJobs; caf::PdmField m_queueName; caf::PdmField m_additionalLsfOptions; caf::PdmField m_additionalSlurmOptions; caf::PdmField m_exclusive; caf::PdmField m_updateInterval; caf::PdmField m_submitWaitSeconds; caf::PdmField> m_batchScheduler; caf::PdmField> m_batchJobMonitoring; };