some enhancemnets#3
Open
papai0709 wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a significant architectural improvement to the web analyzer application by implementing a job queue system for website analysis, centralizing configuration, and enhancing the user interface with real-time progress feedback. The changes improve scalability, reliability, and user experience by offloading analysis tasks to background threads and providing status updates through new endpoints and UI elements.
Backend: Job Queue & Configuration
app.pyto implement a job queue system:/analyze,/status/<job_id>, and/result/<job_id>allow clients to submit jobs, poll status, and fetch results.config.pyfile for centralized, environment-variable-driven configuration of all tunable constants (timeouts, limits, scoring, etc.).Frontend: Progress Feedback & Styling
index.html:style.css. [1] [2]Other Minor Improvements
Most important changes:
Backend architecture and job management
app.pyto implement a threaded job queue for website analysis, with endpoints for job submission, status polling, and result retrieval. Added in-memory job tracking, progress reporting, and job cleanup.config.pyto centralize and document all configuration settings, supporting overrides via environment variables.Frontend user experience
index.htmlto display a dynamic progress bar and status messages during analysis, improving user feedback during long-running jobs.General improvements