Skip to content

feat(scanning): add daemon-based background task processing#23

Draft
quevon24 wants to merge 11 commits intomainfrom
18-evaluate-options-for-background-task-processing
Draft

feat(scanning): add daemon-based background task processing#23
quevon24 wants to merge 11 commits intomainfrom
18-evaluate-options-for-background-task-processing

Conversation

@quevon24
Copy link
Copy Markdown
Member

@quevon24 quevon24 commented Mar 5, 2026

Summary

  • Add daemon settings module with configurable polling interval, batch size, and stale timeout
  • Add ScanManager with needs_processing() queryset and is_stale_processing model property
  • Add process_scans and run_daemon management commands for background scan processing
  • Add scanning-daemon Docker Compose service (reuses the Django image with a different entrypoint)
  • The functionality of process_scans command will be implemented on a different PR once blackletter is ready for implementation.

Closes #18

Paired with @quevon24 and Claude Code

@quevon24 quevon24 linked an issue Mar 5, 2026 that may be closed by this pull request
@quevon24 quevon24 marked this pull request as draft March 5, 2026 00:22
quevon24 added 3 commits March 5, 2026 15:04
- Add volume number filter to scan and opinion list views
- Add django-browser-reload and django-extensions to dev setup
- Fix reporter select not preserving selection on filter
- Add stale processing indicators to scan list
- Add original_pdf existence check in opinion detail
…nd-task-processing' into 18-evaluate-options-for-background-task-processing
@quevon24 quevon24 mentioned this pull request Mar 5, 2026
@quevon24 quevon24 marked this pull request as ready for review March 9, 2026 18:42
@quevon24 quevon24 requested a review from grossir March 9, 2026 18:42
@quevon24 quevon24 moved this to PRs to Review in Sprint (Case Law) Mar 9, 2026
Copy link
Copy Markdown
Contributor

@grossir grossir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this still needs the blackletter integration to be reviewable?

@quevon24
Copy link
Copy Markdown
Member Author

I think this still needs the blackletter integration to be reviewable?

The goal of this pull request is to get the daemon implemented so I can notify Diego to enable it. Later, in another PR, once Blackletter is ready, we can add the command functionality.

@quevon24 quevon24 requested a review from grossir March 11, 2026 23:45
@quevon24 quevon24 marked this pull request as draft March 23, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: PRs to Review

Development

Successfully merging this pull request may close these issues.

Evaluate options for background task processing

2 participants