Commit 13723cef authored by Michael Ott's avatar Michael Ott

Allow for endTime != 0 for insertion into the jobData table if the last digit...

Allow for endTime != 0 for insertion into the jobData table if the last digit is 1 as set by dcdblsurmjob start
parent 7ad7b998
......@@ -452,7 +452,8 @@ int mqttCallback(SimpleMQTTMessage *msg)
#endif
//store JobData into Storage Backend
if (jd.endTime == DCDB::TimeStamp((uint64_t)0)) {
//dcdbslurmjob start inserts the endTime as startTime + max job length + 1, i.e. the last digit will be 1
if ((jd.endTime == DCDB::TimeStamp((uint64_t)0)) || ((jd.endTime.getRaw() & 0x1) == 1)) {
//starting job data
if (myJobDataStore->insertJob(jd) != DCDB::JD_OK) {
LOG(error) << "Job data insert failed!";
......
Markdown is supported
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