Repository navigation
Add optional SCHEDULE clause to CREATE ROUTE - #45
Merged
Merged
Conversation
A multi-row cron() over quackapi_routes() registers every job with the first row's schedule (cronjob on DuckDB 1.5.x), so the bootstrap example now generates one statement per route. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Adds an optional six-field, seconds-first
SCHEDULEclause toCREATE ROUTE.The schedule is stored on
QuackapiRoute, exposed as nullable metadata fromquackapi_routes(), validated at create time, and replaced/removed withCREATE OR REPLACE. Scheduled routes with final path parameters are rejected;groups cannot own schedules, but grouped parameter-free routes can.
Documents and tests use the community
cronjobextension with the in-processquackapi_requestTestClient. The exact bootstrap statement is documented inREADME.md. Manual verification registered
task_0with querySELECT * FROM quackapi_request('GET', '/cron-target')and schedule*/1 * * * * *.Validation:
Pinned DuckDB v1.5.6 release build: passed.
Focused route tests: 2,156 assertions passed.
Focused group tests: 26 assertions passed.
Full
test/sql/quackapi*: 3,227 assertions across 37 test cases passed.Skips: optional cronjob SQLLogic case (cronjob is not linked into the test
runner) and the existing Postgres environment-gated case.
make format-ci-checkandgit diff --check: passed.Codex Luna 5.6 high
Opened by Claude Fable 5.1 from a Codex Luna draft; README bootstrap example corrected to one cron() per route.
🤖 Generated with Claude Code