Skip to content

Commit

Permalink
fix manager
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaukutsu committed Dec 16, 2023
1 parent 95d41ec commit a0c1375
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/TaskManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,10 @@ private function processDelayPush(TaskProcessContext $context): void
{
if (
array_key_exists($context->getHash(), $this->processesDelay)
&& $this->processesDelay[$context->getHash()]->timestamp > $context->timestamp
&& $context->timestamp > $this->processesDelay[$context->getHash()]->timestamp
) {
$context = $this->processesDelay[$context->getHash()];
$this->processesDelay[$context->getHash()] = $context;
}

$this->processesDelay[$context->getHash()] = $context;
}

private function processDelayActive(TaskProcessContext $context, TaskManagerOptions $options): void
Expand Down

0 comments on commit a0c1375

Please sign in to comment.