mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
Support submitting opm flow jobs to Slurm or LSF (#14943)
Add preferences for HPC/Batch scheduler Add Slurm and LSF support Add batch job monitor Support launcher specific user settings Use internal timer to refresh job state Add some more options to batch monitor Improve naming Add tests for job lists Change WSL handling for processes.
This commit is contained in:
63 files changed
+2813
-172
No files matched your search
@@ -21,6 +21,7 @@
|
||||
#include "RicNewOpmFlowJobFeature.h"
|
||||
|
||||
#include "Jobs/RimEnsembleJob.h"
|
||||
#include "Jobs/RimGenericJob.h"
|
||||
#include "Jobs/RimJobCollection.h"
|
||||
#include "Jobs/RimOpmFlowJob.h"
|
||||
#include "RimTools.h"
|
||||
@@ -35,6 +36,19 @@
|
||||
|
||||
CAF_CMD_SOURCE_INIT( RicDuplicateJobFeature, "RicDuplicateJobFeature" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicDuplicateJobFeature::isCommandEnabled() const
|
||||
{
|
||||
if ( auto job = dynamic_cast<RimGenericJob*>( caf::SelectionManager::instance()->selectedItem() ) )
|
||||
{
|
||||
return !job->isChildJob();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -28,6 +28,7 @@ class RicDuplicateJobFeature : public caf::CmdFeature
|
||||
CAF_CMD_HEADER_INIT;
|
||||
|
||||
protected:
|
||||
bool isCommandEnabled() const override;
|
||||
void onActionTriggered( bool isChecked ) override;
|
||||
void setupActionLook( QAction* actionToSetup ) override;
|
||||
};
|
||||
@@ -49,17 +49,16 @@ void RicStopJobFeature::setupActionLook( QAction* actionToSetup )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicStopJobFeature::stopJob( RimGenericJob* job )
|
||||
void RicStopJobFeature::stopJob( RimGenericJob* job )
|
||||
{
|
||||
if ( job == nullptr ) return false;
|
||||
|
||||
if ( QMessageBox::question( RiaGuiApplication::widgetToUseAsParent(),
|
||||
job->name(),
|
||||
"Do you want to stop this job?",
|
||||
QMessageBox::Yes | QMessageBox::No ) == QMessageBox::Yes )
|
||||
if ( job != nullptr )
|
||||
{
|
||||
return job->stop();
|
||||
if ( QMessageBox::question( RiaGuiApplication::widgetToUseAsParent(),
|
||||
job->name(),
|
||||
"Do you want to stop this job?",
|
||||
QMessageBox::Yes | QMessageBox::No ) == QMessageBox::Yes )
|
||||
{
|
||||
job->stop();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -30,7 +30,7 @@ class RicStopJobFeature : public caf::CmdFeature
|
||||
CAF_CMD_HEADER_INIT;
|
||||
|
||||
public:
|
||||
static bool stopJob( RimGenericJob* job );
|
||||
static void stopJob( RimGenericJob* job );
|
||||
|
||||
protected:
|
||||
void onActionTriggered( bool isChecked ) override;
|
||||
|
||||
Reference in new issue
Block a user