From 59e360535330e27f3371f8654b42fb7bcd404595 Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 30 Nov 2010 14:39:26 +0000 Subject: [PATCH] Added deleteJob method for LoadLeveler --- src/LoadLeveler/Batch_BatchManager_eLL.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/LoadLeveler/Batch_BatchManager_eLL.cxx b/src/LoadLeveler/Batch_BatchManager_eLL.cxx index fc84e50..28ed73c 100644 --- a/src/LoadLeveler/Batch_BatchManager_eLL.cxx +++ b/src/LoadLeveler/Batch_BatchManager_eLL.cxx @@ -192,7 +192,16 @@ namespace Batch { void BatchManager_eLL::deleteJob(const JobId & jobid) { - throw NotYetImplementedException("BatchManager_eLL::deleteJob"); + // define command to delete job + string subCommand = "llcancel " + jobid.getReference(); + string command = _protocol.getExecCommand(subCommand, _hostname, _username); + cerr << command.c_str() << endl; + + int status = system(command.c_str()); + if (status) + throw EmulationException("Can't delete job " + jobid.getReference()); + + cerr << "job " << jobid.getReference() << " killed" << endl; } void BatchManager_eLL::holdJob(const JobId & jobid) -- 2.39.2