Skip to content

Fix: stop_crawl() overwrites "completed" status#51

Open
liquidpurple wants to merge 1 commit intoPhialsBasement:mainfrom
liquidpurple:fix/stop-crawl-status-race
Open

Fix: stop_crawl() overwrites "completed" status#51
liquidpurple wants to merge 1 commit intoPhialsBasement:mainfrom
liquidpurple:fix/stop-crawl-status-race

Conversation

@liquidpurple
Copy link
Copy Markdown

Race condition: the cleanup thread calls stop_crawl() after a crawl has already been marked "completed", changing its status back to "stopped".

Added a status check before overwriting — if the crawl is already "completed", leave it alone.

Race condition: the cleanup thread calls stop_crawl() after a crawl has already been marked "completed", changing its status back to "stopped".

Added a status check before overwriting — if the crawl is already
"completed", leave it alone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant