This commit is contained in:
2026-04-17 16:17:16 -07:00
parent 343a7b37a0
commit d9e736172a
4 changed files with 322 additions and 29 deletions
+3 -2
View File
@@ -3160,6 +3160,7 @@ def check_url_exists_in_storage(
final_output_dir: Optional[Path] = None,
*,
auto_continue_duplicates: bool = True,
force_prompt_in_pipeline: bool = False,
) -> bool:
"""Pre-flight check to see if URLs already exist in storage.
@@ -3252,7 +3253,7 @@ def check_url_exists_in_storage(
cached_cmd = ""
cached_decision = None
if cached_decision is not None and str(cached_cmd or "") == str(current_cmd_text or ""):
if (not force_prompt_in_pipeline) and cached_decision is not None and str(cached_cmd or "") == str(current_cmd_text or ""):
_mark_preflight_checked()
if bool(cached_decision):
return True
@@ -3959,7 +3960,7 @@ def check_url_exists_in_storage(
is_last_stage = bool(getattr(stage_ctx, "is_last_stage", False))
except Exception:
is_last_stage = False
if total_stages > 1 and not is_last_stage:
if total_stages > 1 and not is_last_stage and not force_prompt_in_pipeline:
auto_confirm_reason = "pipeline stage (pre-last)"
if auto_confirm_reason is None:
try: