Skip to content

Commit

Permalink
limit cron process on archived file
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl committed Oct 20, 2021
1 parent 015ce68 commit 1e83929
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Cron/Manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ protected function run($argument) {

// uploading
foreach ($this->pointService->getLocalRestoringPoints() as $point) {
if ($point->isArchive()) {
continue;
}
try {
$this->uploadService->uploadPoint($point);
} catch (Throwable $e) {
Expand All @@ -116,6 +119,9 @@ protected function run($argument) {

// packing
foreach ($this->pointService->getLocalRestoringPoints() as $point) {
if ($point->isArchive()) {
continue;
}
try {
$this->pointService->initBaseFolder($point);
$this->packService->packPoint($point);
Expand Down

0 comments on commit 1e83929

Please sign in to comment.