Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #244 from trylika/master
Browse files Browse the repository at this point in the history
Remove remnants of log job strategy
  • Loading branch information
roelvanduijnhoven authored Dec 14, 2021
2 parents a84ee18 + 0feb17f commit 78c1fc1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
3 changes: 0 additions & 3 deletions config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
use SlmQueue\Queue\QueuePluginManager;
use SlmQueue\Strategy\AttachQueueListenersStrategy;
use SlmQueue\Strategy\Factory\AttachQueueListenersStrategyFactory;
use SlmQueue\Strategy\Factory\LogJobStrategyFactory;
use SlmQueue\Strategy\FileWatchStrategy;
use SlmQueue\Strategy\InterruptStrategy;
use SlmQueue\Strategy\LogJobStrategy;
use SlmQueue\Strategy\MaxMemoryStrategy;
use SlmQueue\Strategy\MaxPollingFrequencyStrategy;
use SlmQueue\Strategy\MaxRunsStrategy;
Expand Down Expand Up @@ -100,7 +98,6 @@
],
'factories' => [
AttachQueueListenersStrategy::class => AttachQueueListenersStrategyFactory::class,
LogJobStrategy::class => LogJobStrategyFactory::class,
],
],
],
Expand Down
3 changes: 1 addition & 2 deletions config/slm_queue.global.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* forget to remove the .dist extension from the file), and configure it as you want
*/

use SlmQueue\Strategy\LogJobStrategy;
use SlmQueue\Strategy\MaxMemoryStrategy;
use SlmQueue\Strategy\ProcessQueueStrategy;

Expand Down Expand Up @@ -64,7 +63,7 @@ return [
*
* 'strategy_manager' => [
* 'factories' => [
* LogJobStrategy::class => 'MyVeryOwn\LogJobStrategyFactory',
* MyVeryOwn\LogJobStrategy::class => 'MyVeryOwn\LogJobStrategyFactory',
* ]
* ],
*/
Expand Down
9 changes: 0 additions & 9 deletions docs/6.Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,6 @@ listens to:

This strategy is enabled by default for all queue's.

#### LogJobStrategy

Simple outputs to the console a when it begin executing a job and when it is done.

listens to:

- `process.job` event at priority 1000
- `process.job` event at priority -1000

#### MaxMemoryStrategy

The MaxMemoryStrategy will measure the amount of memory allocated to PHP after each processed job. It will request to
Expand Down

0 comments on commit 78c1fc1

Please sign in to comment.