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.
27 lines
664 B
PHP
27 lines
664 B
PHP
<?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'));
|
|
}
|
|
}
|