-// Copyright (C) 2009-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2019 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
connect(_load_jobs, SIGNAL(clicked()), this, SLOT(load_jobs_button()));
connect(_save_jobs, SIGNAL(clicked()), this, SLOT(save_jobs_button()));
- _auto_refresh_jobs = new QPushButton("Auto Refresh: no");
+ _auto_refresh_jobs = new QPushButton("Auto Refresh: 30s");
_timer = new QTimer(this);
_timer->stop();
+ _timer->start(30 * 1000);
connect(_timer, SIGNAL(timeout()), this, SLOT(RefreshJobs()));
// Menu for auto refresh
new_job->setType(BL::Job::COMMAND);
new_job->setJobFile(wizard.command);
break;
+ case BL::CreateJobWizard::COMMAND_SALOME:
+ // Command Job
+ new_job->setType(BL::Job::COMMAND_SALOME);
+ new_job->setJobFile(wizard.command);
+ break;
case BL::CreateJobWizard::PYTHON_SALOME:
// Python Salome Job
new_job->setType(BL::Job::PYTHON_SALOME);
// For all jobs
new_job->setEnvFile(wizard.env_file);
+ new_job->setPreCommand(wizard.pre_command);
BL::Job::BatchParam param;
// For COORM
param.mem_limit = wizard.mem_limit;
param.mem_req_type = wizard.mem_req_type;
param.nb_proc = wizard.nb_proc;
+ param.nb_node = wizard.nb_node;
param.exclusive = wizard.exclusive;
// Parameters for COORM
new_job->setFilesParameters(files_params);
new_job->setResource(wizard.resource_choosed);
new_job->setBatchQueue(wizard.batch_queue);
+ new_job->setBatchPartition(wizard.batch_partition);
new_job->setLoadLevelerJobType(wizard.ll_jobtype);
new_job->setWCKey(wizard.wckey);
new_job->setExtraParams(wizard.extra_params);
{
if (event->event_name == "Ok")
{
- write_normal_text("Results of Job " + job_name + " are get\n");
+ write_normal_text("Results of Job " + job_name + " have been got.\n");
}
else
{