huskies: merge 958
This commit is contained in:
@@ -41,8 +41,13 @@ pub(super) async fn scan_and_claim(
|
||||
};
|
||||
|
||||
for item in &items {
|
||||
// Only claim stories in active stages.
|
||||
if !item.stage().is_active() {
|
||||
// Only claim stories in execution stages (Coding, Qa, Merge).
|
||||
if !matches!(
|
||||
item.stage(),
|
||||
crate::pipeline_state::Stage::Coding
|
||||
| crate::pipeline_state::Stage::Qa
|
||||
| crate::pipeline_state::Stage::Merge { .. }
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -163,7 +168,12 @@ pub(super) fn reclaim_timed_out_work(_project_root: &Path) {
|
||||
let now = chrono::Utc::now().timestamp() as f64;
|
||||
|
||||
for item in &items {
|
||||
if !item.stage().is_active() {
|
||||
if !matches!(
|
||||
item.stage(),
|
||||
crate::pipeline_state::Stage::Coding
|
||||
| crate::pipeline_state::Stage::Qa
|
||||
| crate::pipeline_state::Stage::Merge { .. }
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user