fix: add timeout to retrieval activity endpoint to prevent hanging

The /api/instance/retrieval endpoint could hang indefinitely when the source database was unreachable or the restore container was stuck, because ReportActivity was called with context.Background().

Add a 15-second timeout context for the activity check and a 10-second connect timeout for the pgx connection to the source database.

Closes #686 (closed)

Edited by Nikolay Samokhvalov

Merge request reports

Loading