Skip to content

Commit 2f47bd4

Browse files
committed
Test copying .env to development
1 parent 40dbf92 commit 2f47bd4

1 file changed

Lines changed: 1 addition & 51 deletions

File tree

app/Console/Commands/AppTestCommand.php

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
namespace App\Console\Commands;
2222

23-
use App\Models\OcrQueue;
24-
use App\Models\OcrQueueFile;
2523
use Illuminate\Console\Command;
2624

2725
class AppTestCommand extends Command
@@ -39,53 +37,5 @@ class AppTestCommand extends Command
3937
/**
4038
* Execute the console command.
4139
*/
42-
public function handle(): void
43-
{
44-
$queueId = 53;
45-
$this->info("Looking for Queue ID: $queueId");
46-
47-
$queue = OcrQueue::find($queueId);
48-
49-
if (! $queue) {
50-
$this->error('Queue not found!');
51-
52-
return;
53-
}
54-
55-
$this->info('Found Queue. Resetting processed files...');
56-
57-
// Reset counts
58-
OcrQueueFile::where('queue_id', $queueId)->update(['processed' => 0]);
59-
60-
// Verify reset
61-
$total = OcrQueueFile::where('queue_id', $queueId)->count();
62-
$queue->total = $total;
63-
$queue->stage = 2; // Running
64-
$queue->save();
65-
66-
$this->info("Queue reset. Total files: $total");
67-
$this->info('Switch to your browser NOW. Starting simulation in 5 seconds...');
68-
69-
sleep(5);
70-
71-
$bar = $this->output->createProgressBar($total);
72-
$bar->start();
73-
74-
$files = OcrQueueFile::where('queue_id', $queueId)->get();
75-
76-
foreach ($files as $file) {
77-
// Simulate processing
78-
$file->processed = 1;
79-
$file->save();
80-
81-
$bar->advance();
82-
83-
// Wait 2 seconds to allow browser polling to catch it
84-
sleep(2);
85-
}
86-
87-
$bar->finish();
88-
$this->newLine();
89-
$this->info('Simulation Complete.');
90-
}
40+
public function handle(): void {}
9141
}

0 commit comments

Comments
 (0)