mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 06:46:10 +01:00
add some logging to contine killed job
This commit is contained in:
@@ -369,7 +369,6 @@ class IncScheduler():
|
|||||||
|
|
||||||
if destinationConfig['type'] == 'local':
|
if destinationConfig['type'] == 'local':
|
||||||
|
|
||||||
|
|
||||||
finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime)
|
finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime)
|
||||||
command = 'mkdir -p %s' % (finalPath)
|
command = 'mkdir -p %s' % (finalPath)
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
@@ -401,6 +400,9 @@ class IncScheduler():
|
|||||||
NormalBackupJobLogs(owner=backupjob, status=backupSchedule.INFO,
|
NormalBackupJobLogs(owner=backupjob, status=backupSchedule.INFO,
|
||||||
message='Starting %s backup on %s..' % (type, time.strftime("%m.%d.%Y_%H-%M-%S"))).save()
|
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
|
actualDomain = 0
|
||||||
try:
|
try:
|
||||||
if jobConfig[IncScheduler.allSites] == 'all':
|
if jobConfig[IncScheduler.allSites] == 'all':
|
||||||
|
|||||||
Reference in New Issue
Block a user