fix
This commit is contained in:
@@ -45,8 +45,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if (!$this->server->isServerReady($this->tries)) {
|
if (!$this->server->isServerReady($this->tries)) {
|
||||||
$this->fail('Server is not reachable.');
|
return 'Server is not reachable.';
|
||||||
return;
|
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
if ($this->server->isSwarm()) {
|
if ($this->server->isSwarm()) {
|
||||||
|
|||||||
@@ -164,12 +164,11 @@ class Server extends BaseModel
|
|||||||
|
|
||||||
$serverUptimeCheckNumberMax = $tries;
|
$serverUptimeCheckNumberMax = $tries;
|
||||||
|
|
||||||
ray('server: ' . $this->name);
|
// ray('server: ' . $this->name);
|
||||||
ray('serverUptimeCheckNumber: ' . $serverUptimeCheckNumber);
|
// ray('serverUptimeCheckNumber: ' . $serverUptimeCheckNumber);
|
||||||
ray('serverUptimeCheckNumberMax: ' . $serverUptimeCheckNumberMax);
|
// ray('serverUptimeCheckNumberMax: ' . $serverUptimeCheckNumberMax);
|
||||||
|
|
||||||
$result = $this->validateConnection();
|
$result = $this->validateConnection();
|
||||||
ray($result);
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
if ($this->unreachable_notification_sent === true) {
|
if ($this->unreachable_notification_sent === true) {
|
||||||
$this->update(['unreachable_notification_sent' => false]);
|
$this->update(['unreachable_notification_sent' => false]);
|
||||||
|
|||||||
Reference in New Issue
Block a user