Skip to content

Commit

Permalink
Don't delete messages from queue when worker stops
Browse files Browse the repository at this point in the history
  • Loading branch information
Hipska committed Aug 30, 2024
1 parent 831c9b6 commit 54fa2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SnmpDiscoveryCollector.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ public function InitMessageQueue(): void

// Declare AMQP RPC queue
$sUUID = Utils::GetConfigurationValue('discovery_application_uuid');
[$this->sQueue] = $this->oChannel->queue_declare(sprintf('%s-%s', $this->GetName(), $sUUID));
[$this->sQueue] = $this->oChannel->queue_declare(sprintf('%s-%s', $this->GetName(), $sUUID), auto_delete: false);
}

/**
Expand Down

0 comments on commit 54fa2e7

Please sign in to comment.