Skip to content

Commit f6bdac9

Browse files
refactor: remove migration command not needed in production
1 parent fec1080 commit f6bdac9

File tree

3 files changed

+1
-99
lines changed

3 files changed

+1
-99
lines changed

docs/artisan-commands.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,6 @@ protected function schedule(Schedule $schedule)
5454
}
5555
```
5656

57-
---
58-
59-
### queue-metrics:migrate-discovery
60-
61-
Migrate existing metrics to discovery sets.
62-
63-
```bash
64-
php artisan queue-metrics:migrate-discovery
65-
```
66-
67-
**Purpose**: One-time migration command to improve performance by using Redis sets for discovery instead of key scanning.
68-
69-
**When to run**: After upgrading from a version that didn't use discovery sets.
70-
7157
## Recommended Schedule
7258

7359
```php

src/Console/Commands/MigrateToDiscoverySetsCommand.php

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/LaravelQueueMetricsServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
use PHPeek\LaravelQueueMetrics\Commands\CleanupStaleWorkersCommand;
2525
use PHPeek\LaravelQueueMetrics\Config\QueueMetricsConfig;
2626
use PHPeek\LaravelQueueMetrics\Config\StorageConfig;
27-
use PHPeek\LaravelQueueMetrics\Console\Commands\MigrateToDiscoverySetsCommand;
2827
use PHPeek\LaravelQueueMetrics\Console\DetectStaleWorkersCommand;
2928
use PHPeek\LaravelQueueMetrics\Console\RecordTrendDataCommand;
3029
use PHPeek\LaravelQueueMetrics\Contracts\QueueInspector;
@@ -72,8 +71,7 @@ public function configurePackage(Package $package): void
7271
->hasCommand(CalculateBaselinesCommand::class)
7372
->hasCommand(CleanupStaleWorkersCommand::class)
7473
->hasCommand(DetectStaleWorkersCommand::class)
75-
->hasCommand(RecordTrendDataCommand::class)
76-
->hasCommand(MigrateToDiscoverySetsCommand::class);
74+
->hasCommand(RecordTrendDataCommand::class);
7775
}
7876

7977
public function packageRegistered(): void

0 commit comments

Comments
 (0)