Repository navigation
feat: send webhook notification after crawl (closes #15) - #56
Open
barunTayenjam wants to merge 3 commits into
Open
barunTayenjam wants to merge 3 commits into
barunTayenjam wants to merge 3 commits into
Conversation
Projects can now have a crawl schedule (hourly, daily or weekly), selected when the project is created or edited. While the server is running, a scheduler ticks every minute and starts a new crawl for every scheduled project whose next run time has passed. - migration 0076: projects.schedule_interval + projects.next_run - models/repository: schedule fields, FindScheduledProjects, UpdateProjectNextRun - SchedulerService with injected clock; next_run always advances (even on error) so a failing project never blocks the schedule; BasicAuth projects are skipped as their credentials are not stored - SaveProject sets next_run; UpdateProject recomputes it only when the interval changes - [scheduler] enabled config (SEONAUT_SCHEDULER_ENABLED), default on - project add/edit forms: schedule select + validation error - translations: schedule strings in en, es, nl, uk, fa - docs: README + INSTALL.md (scheduled crawls section) Verified end-to-end (MySQL 8.4 + local test site): manual crawl produces report/CSV, forcing next_run past due triggers a scheduled crawl within one tick and advances next_run, invalid interval is rejected, restart causes no catch-up burst.
Author
|
Closing for now while I finish local verification of the stacked branch. Will reopen once tested. Sorry for the noise. |
Author
|
Reopening after completing local end-to-end verification (scheduled + manual crawls both deliver correct webhook payloads). Also includes a small follow-up: schedule badge on the projects home page. |
barunTayenjam
force-pushed
the
feat/crawl-notifications
branch
from
October 10, 2026 15:00
1fcab26 to
fbdce2c
Compare
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.
Summary
Sends a JSON webhook POST when a crawl finishes, so users can wire weekly monitors (e.g. this stacks on #55 scheduled crawls) to Slack/Discord/CI without adding provider SDKs.
Changes
Testing
{"scheduled":false,...}; forced schedule delivered{"scheduled":true,...}; invalid scheme rejected.