Skip to content

Commit

Permalink
Add getSignalsForGracefulWorkerShutdown() to QueueConfig (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass authored Apr 28, 2022
1 parent 604f9fb commit 994466a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/spryker/application/overlay/src/Pyz/Zed/Queue/QueueConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ public function getQueueProcessTimeout(): int
return Config::get(QueueConstants::QUEUE_PROCESS_TIMEOUT, 30);
}

/**
* @return int[]
*/
public function getSignalsForGracefulWorkerShutdown(): array
{
return [
static::SIGINT,
static::SIGQUIT,
static::SIGABRT,
static::SIGTERM,
];
}

/**
* @return array
*/
Expand Down

0 comments on commit 994466a

Please sign in to comment.