Skip to content

Commit

Permalink
Correctly cache cloud update locally
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Sep 29, 2020
1 parent a0f3821 commit bdff976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/TaskOperation/Composer/CloudOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ private function getCurrentJob(): ?CloudJob
$lastUpdated = time() - $this->taskConfig->getState('cloud-job-updated', time());
$isProcessing = $this->taskConfig->getState('cloud-job-processing', 0) > 0;

if (($isProcessing && $lastUpdated >= 5) || $lastUpdated >= 10) {
if (($isProcessing && $lastUpdated <= 5) || $lastUpdated <= 10) {
$this->output = $this->taskConfig->getState('cloud-job-output');

return $this->job;
Expand Down

0 comments on commit bdff976

Please sign in to comment.