From 2e2563d89f882106f8a5a342b549d8f441f463e6 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 29 Sep 2020 12:34:59 +0500 Subject: [PATCH] add some logging to contine killed job --- plogical/IncScheduler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plogical/IncScheduler.py b/plogical/IncScheduler.py index 226ce77e4..a2dc45bfc 100644 --- a/plogical/IncScheduler.py +++ b/plogical/IncScheduler.py @@ -369,7 +369,6 @@ class IncScheduler(): if destinationConfig['type'] == 'local': - finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime) command = 'mkdir -p %s' % (finalPath) ProcessUtilities.executioner(command) @@ -401,6 +400,9 @@ class IncScheduler(): NormalBackupJobLogs(owner=backupjob, status=backupSchedule.INFO, message='Starting %s backup on %s..' % (type, time.strftime("%m.%d.%Y_%H-%M-%S"))).save() + if oldJobContinue: + NormalBackupJobLogs(owner=backupjob, status=backupSchedule.INFO, message='Will continue old killed job starting from %s.' % (stuckDomain)).save() + actualDomain = 0 try: if jobConfig[IncScheduler.allSites] == 'all':