mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(database-import): stop the restore when the import task fails or loses SSH
An import task can now run until the SSH command timeout (capped below the Horizon worker timeout). When the CoolifyTask fails, times out, or its SSH command ends with 124/255, Coolify stops the restore in the database container and keeps the import in progress until the stop has run, so the database stays blocked. The restore reports its own 124/255 as 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
332a970b27
commit
1ee34a5ab2
@@ -28,6 +28,7 @@ function remote_process(
|
||||
$callEventOnFinish = null,
|
||||
$callEventData = null,
|
||||
array $properties = [],
|
||||
?int $timeout = null,
|
||||
): Activity {
|
||||
$type = $type ?? ActivityTypes::INLINE->value;
|
||||
$command = $command instanceof Collection ? $command->toArray() : $command;
|
||||
@@ -72,6 +73,7 @@ function remote_process(
|
||||
ignore_errors: $ignore_errors,
|
||||
call_event_on_finish: $callEventOnFinish,
|
||||
call_event_data: $callEventData,
|
||||
timeout: $timeout,
|
||||
));
|
||||
|
||||
$activity->refresh();
|
||||
|
||||
Reference in New Issue
Block a user