Skip to content

Commit

Permalink
increase timeout on pastoral module api check
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Aug 21, 2024
1 parent c327f95 commit 42bd23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/HealthChecks/PastoralModuleApiConnectionCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function run(): Result
{
$result = Result::make();
try {
$user = Http::pastoralModule()->get('auth/me')->throw()->collect()->first();
$user = Http::connectTimeout(300)->pastoralModule()->get('auth/me')->throw()->collect()->first();
} catch (\Exception $e) {
Log::error($e->getMessage(), $e->getTrace());
return $result->failed('Error thrown whilst trying to access Pastoral Module API User');
Expand Down

0 comments on commit 42bd23b

Please sign in to comment.