Commit fbb50708 authored by Dillenn Terumalai's avatar Dillenn Terumalai
Browse files

fix: modified sbatch to use the account configured

parent cab42d61
Pipeline #2340 passed with stage
in 6 seconds
......@@ -227,6 +227,7 @@ class SlurmConnector implements ClusterInterface
#SBATCH --partition=%s
#SBATCH --mem=%s
#SBATCH --time=%s
#SBATCH --account=%s
%s
EOF",
"{$job->exportPath}/%x_%j.out",
......@@ -235,10 +236,11 @@ EOF",
$job->partition,
$job->memory,
$job->timeout,
config('laravel-cluster.connections.slurm.username'),
$content
);
$process = Process::fromShellCommandline("sbatch --parsable $payload");
$process = Process::fromShellCommandline("sbatch --account=" . config('laravel-cluster.connections.slurm.username') . " --parsable $payload");
$process->run();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment