Skip to content

Commit 08e1493

Browse files
aster-voidclaude
andcommitted
fix(job): clean up stale handles before copy check, add -i flag
Stale finished handles in try_copy caused running_count() > 0, permanently blocking build-to-run copies after git pull updates. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 80aec2d commit 08e1493

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/actor/job/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ impl JobActor {
6262
}
6363

6464
fn try_copy(&mut self) -> anyhow::Result<bool> {
65+
self.cleanup_finished_handles();
6566
if self.pending_copy && self.running_count() == 0 {
6667
info!(target: "rollcron::job", job_id = %self.job.id, "Copying build to run directory");
6768
let build_dir = git::get_build_dir(&self.sot_path, &self.job.id);

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct Args {
2222
repo: String,
2323

2424
/// Pull interval in seconds
25-
#[arg(long, default_value = "3600")]
25+
#[arg(short = 'i', long, default_value = "3600")]
2626
pull_interval: u64,
2727
}
2828

0 commit comments

Comments
 (0)