Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/runner/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ impl<'a> Worker<'a> {
Ok(()) => break,
Err(e) => {
if logs.to_string().contains("No space left on device") {
if attempt == 3 {
// FIXME: Doesn't this cause us to potentially delete caches
// used by other workers? Maybe we can do something more
// intelligent here?
if let Err(e) = self.workspace.purge_all_caches() {
log::warn!("purging caches failed: {:?}", e);
}
}

if attempt == 15 {
// If we've failed 15 times, then
// just give up. It's been at least
Expand Down