update
This commit is contained in:
+3
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user