Skip to content

Add resume_on_start option to control crawl resumption on restart#48

Draft
Copilot wants to merge 3 commits intomasterfrom
copilot/add-continue-crawls-option
Draft

Add resume_on_start option to control crawl resumption on restart#48
Copilot wants to merge 3 commits intomasterfrom
copilot/add-continue-crawls-option

Conversation

Copy link
Contributor

Copilot AI commented Nov 18, 2025

Arachnado currently auto-resumes all jobs with status "shutdown" or "running" on server restart. This adds a configuration option to control that behavior.

Changes

  • Config option: Added resume_on_start (default: 1) in defaults.conf
  • CLI flags: Added --resume-on-start and --no-resume-on-start for runtime override
  • Logic: Conditionally calls domain_crawlers.resume(job_storage) in main() based on option value

Usage

Config file:

[arachnado]
resume_on_start = 0  # Disable auto-resume

Command line:

arachnado --no-resume-on-start  # Override config, disable resume

Default behavior unchanged (auto-resume enabled) for backward compatibility.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add an option to continue crawls after restart</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits November 18, 2025 01:49
Co-authored-by: P4X-ng <223870169+P4X-ng@users.noreply.github.com>
Co-authored-by: P4X-ng <223870169+P4X-ng@users.noreply.github.com>
Copilot AI changed the title [WIP] Add option to continue crawls after restart Add resume_on_start option to control crawl resumption on restart Nov 18, 2025
Copilot AI requested a review from P4X-ng November 18, 2025 01:56
@github-actions
Copy link

This PR has been marked stale and will be closed in 7 days unless updated.

@github-actions github-actions bot added the Stale label Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to continue crawls after restart

2 participants