Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Scanner Status to Other Processes #60

Open
vgarcia007 opened this issue Nov 4, 2024 · 0 comments
Open

Expose Scanner Status to Other Processes #60

vgarcia007 opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@vgarcia007
Copy link
Collaborator

Currently, there's no straightforward method for other scripts (such as the API) to retrieve the scanner's status or progress.

The main Python script should expose this status in a way that can be easily accessed. Possible solutions include:

  • A simple "status file" in a temporary location that other scripts can check.
  • Alternatively, using a Redis container to store statuses. However, this may be overkill.

The scanner needs to report on three possible states:

{
  "scan": true/false,       // indicates if a scan is in progress
  "waiting": true/false,    // indicates if it's waiting for rear pages
  "ocr": true/false         // indicates if OCR processing is pending
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant