Skip to content

Commit

Permalink
Made it possible to run the backup, cleanup and monitor commands in i…
Browse files Browse the repository at this point in the history
…solated mode
  • Loading branch information
pieterclaerhout committed Jan 11, 2024
1 parent 0e4faa3 commit c63951a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Commands/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace Spatie\Backup\Commands;

use Exception;
use Illuminate\Contracts\Console\Isolatable;
use Spatie\Backup\Events\BackupHasFailed;
use Spatie\Backup\Exceptions\BackupFailed;
use Spatie\Backup\Exceptions\InvalidCommand;
use Spatie\Backup\Tasks\Backup\BackupJobFactory;
use Spatie\Backup\Traits\Retryable;

class BackupCommand extends BaseCommand
class BackupCommand extends BaseCommand implements Isolatable
{
use Retryable;

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/CleanupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Spatie\Backup\Tasks\Cleanup\CleanupStrategy;
use Spatie\Backup\Traits\Retryable;

class CleanupCommand extends BaseCommand
class CleanupCommand extends BaseCommand implements Isolatable
{
use Retryable;

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/MonitorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Spatie\Backup\Events\UnhealthyBackupWasFound;
use Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory;

class MonitorCommand extends BaseCommand
class MonitorCommand extends BaseCommand implements Isolatable
{
/** @var string */
protected $signature = 'backup:monitor';
Expand Down

0 comments on commit c63951a

Please sign in to comment.