Skip to content

Commit

Permalink
Wait until command has ran before proceeding
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Jan 3, 2025
1 parent 8181126 commit a4f3cd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Data/Sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ public function mountRepository(): void
$this->getSite()->id,
['command' => $commandString],
);

// Unfortunately, the Forge SDK does not have a method for waiting for the site commands to run
// so we might encounter a race condition if we try to run the next step too quickly.
// Waiting for a couple seconds should be enough time for the commands to run.
sleep(10);
}
}

Expand Down
Binary file modified builds/blacksmith
Binary file not shown.

0 comments on commit a4f3cd8

Please sign in to comment.