Ship production optimization M1-M12.5A: queues, metrics, HTTP observability, and vector search reliability.
Keep similar-ai from tripping the global circuit on a lone URL 502, clamp Qdrant search to 100, and add Server-Timing plus slow-request logging. Studio shared props, Academy S3 exists caching, heat chunking, and Redis/scheduler hygiene stay in this rollout.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\Jobs;
|
||||
|
||||
use App\Jobs\RecComputeSimilarByBehaviorJob;
|
||||
use Tests\TestCase;
|
||||
|
||||
final class RecComputeSimilarByBehaviorJobTest extends TestCase
|
||||
{
|
||||
public function test_job_timeout_stays_below_queue_retry_after(): void
|
||||
{
|
||||
$job = new RecComputeSimilarByBehaviorJob();
|
||||
|
||||
$this->assertLessThan(
|
||||
(int) config('queue.connections.redis.retry_after'),
|
||||
$job->timeout,
|
||||
);
|
||||
}
|
||||
|
||||
public function test_batch_jobs_do_not_use_without_overlapping_middleware(): void
|
||||
{
|
||||
$this->assertFalse(method_exists(new RecComputeSimilarByBehaviorJob(), 'middleware'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user