Skip to content

Commit 5c9fcee

Browse files
committed
Renames a method to reflect the new config field it reads
1 parent 315fa2d commit 5c9fcee

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Model/FlowConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getWorkerInstancesCount(): int
5959
return $this->config['worker']['instances'];
6060
}
6161

62-
public function getWorkerReleaseDelay(): int
62+
public function getWorkerErrorRetryDelay(): int
6363
{
6464
return $this->config['worker']['error_retry_delay'];
6565
}

src/WorkerInstance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ public function boot(): Promise
131131
continue;
132132
}
133133

134-
yield $this->queueBackend->requeue($job, $this->flowConfig->getWorkerReleaseDelay());
134+
yield $this->queueBackend->requeue($job, $this->flowConfig->getWorkerErrorRetryDelay());
135135
$this->logger->info(
136136
'Worker released a Job',
137-
array_merge($logContext, ['error_retry_delay' => $this->flowConfig->getWorkerReleaseDelay()])
137+
array_merge($logContext, ['error_retry_delay' => $this->flowConfig->getWorkerErrorRetryDelay()])
138138
);
139139
}
140140
}

0 commit comments

Comments
 (0)