Commit 018199a3 authored by Kamron Aroonrua's avatar Kamron Aroonrua 💬

jobtask

parent 152f6d53
...@@ -213,13 +213,15 @@ JobTask.prototype.run = function () ...@@ -213,13 +213,15 @@ JobTask.prototype.run = function ()
async.waterfall([task_di,task_dt,task_do],function (err,resp) { async.waterfall([task_di,task_dt,task_do],function (err,resp) {
clearTimeout(jtimeout); clearTimeout(jtimeout);
console.log('[JOB DONE] id=' + job_id + ' ,tr=' + transaction_id + '\t' + resp.status); //console.log('[JOB DONE] id=' + job_id + ' ,tr=' + transaction_id + '\t' + resp.status);
if(!err){ if(!err){
self.stop(resp) self.stop(resp)
// console.log('***** JOB SUCCESSFULLY DONE *****\n'); // console.log('***** JOB SUCCESSFULLY DONE *****\n');
console.log('[JOB DONE] id=' + job_id + ' ,tr=' + transaction_id + '\tsuccess');
}else{ }else{
self.stop(err) self.stop(err)
// console.log('***** JOB UNSUCCESSFULLY DONE *****\n'); // console.log('***** JOB UNSUCCESSFULLY DONE *****\n');
console.log('[JOB DONE] id=' + job_id + ' ,tr=' + transaction_id + '\tunsuccess');
} }
}); });
......
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