IF_FAIL_RETURN(jobRunner, E_PARAM);
if (!jobRunner->isStarted()) {
- _D("Job-%d of %s has stopped already", jobId, owner->getName().c_str());
+ _W("Job-%d of %s has stopped already", jobId, owner->getName().c_str());
return E_RULE_OFF;
}
JobRunner* jobRunner = __getRunner(owner->getName(), jobId);
IF_FAIL_RETURN_TAG(jobRunner, E_PARAM, _W, "Not found");
+ if (jobRunner->isStarted()) {
+ _W("Job-%d of %s is still running", jobId, owner->getName().c_str());
+ return E_RULE_ON;
+ }
+
if (jobRunner->isPersistent())
__jobInfoDatabase.remove(jobId);