Skip to content

Commit d292c30

Browse files
committed
add log informing user of intentional delay in job execution
Signed-off-by: Severin Hamader <severin.hamader@yahoo.de>
1 parent 47800a2 commit d292c30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Service/GoogleDriveAPIService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public function importDriveJob(string $userId): void {
155155
if ($jobRunning) {
156156
$lastJobStart = $this->config->getUserValue($userId, Application::APP_ID, 'drive_import_job_last_start');
157157
if ($lastJobStart !== '' && ($nowTs - intval($lastJobStart) < Application::IMPORT_JOB_TIMEOUT)) {
158+
$this->logger->info('Last job execution (' . strval($nowTs - intval($lastJobStart)) . ') is less than ' . strval(Application::IMPORT_JOB_TIMEOUT) . ' seconds ago, delaying execution');
158159
// last job has started less than an hour ago => we consider it can still be running
159160
$this->jobList->add(ImportDriveJob::class, ['user_id' => $userId]);
160161
return;

0 commit comments

Comments
 (0)