Skip to content

[DOCS] Document the github scheduling backend (schedules as Actions workflows) #546

Closed

Description

@edenreich

Summary

The CLI gained a "github" scheduling backend (inference-gateway/cli#1055, implemented in inference-gateway/cli#1056): schedules are materialized as GitHub Actions scheduled workflows in a user-configured repository (default "/.routines", auto-created private). Saves push directly to the default branch (or open a PR when "scheduler.github.pull_requests: true"), workflows run the job prompt via inference-gateway/infer-action under a GitHub App bot identity, and a daemon-hosted poller pulls conversation artifacts back into local storage. The docs site needs a page/section covering this.

Content to document (source material lives in the CLI repo docs added by the PR: docs/scheduling.md "GitHub backend" section and docs/configuration-reference.md "Scheduler Configuration"):

  • Config reference: "scheduler.backend" (local | github), "scheduler.github.repository", "scheduler.github.pull_requests", "scheduler.github.artifacts." (enabled, poll_interval, initial_delay, max_attempts, rate_limit_backoff) and the matching "INFER_SCHEDULER_" env vars.
  • Setup guide: gh auth prerequisite, GitHub App creation, required repository Actions secrets ("APP_CLIENT_ID", "APP_PRIVATE_KEY", provider "*_API_KEY" secrets - the CLI never writes secrets).
  • Save-to-deploy flow: direct push vs pull-request mode, repo auto-creation.
  • Cron limitations and translation: UTC-only, 5-field, minimum 5 minutes; "@daily" / "@every" translation and what gets rejected.
  • run_once semantics: the workflow disables itself after the first fire.
  • Artifact pull-back: what gets uploaded, polling cadence, retry cap, rate-limit backoff, jsonl-storage-only limitation.
  • Out of scope in the first cut: channel delivery of GitHub-backed job output, RunRecord sync.

Affected pages: the CLI scheduling page (or create one if the docs site does not have it yet) and the CLI configuration reference.

Source: inference-gateway/cli#1055, inference-gateway/cli#1056.

Acceptance Criteria

  • Scheduling docs cover the github backend: setup (gh auth, GitHub App, secrets), save-to-deploy flow (direct push and pull-request mode), and repo auto-creation.
  • Configuration reference lists all "scheduler." keys and "INFER_SCHEDULER_" env vars with defaults.
  • Cron translation rules and rejections are documented (UTC, 5-field, >= 5 minutes).
  • Artifact pull-back behavior (poll interval, max attempts, rate-limit backoff, jsonl-only) and run_once self-disable are documented.

Activity

  1. added
    documentation
    on Aug 12, 2026
  2. added theissue type on Aug 12, 2026
  3. moved this to Todo in 2026on Aug 12, 2026
  4. edenreich commented on Aug 12, 2026

    @edenreich
    ContributorAuthor

    @claude Can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Aug 12, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 4m 52s —— View job • docs/issue-546-20260812-2043 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-546-20260812-2043?quick_pull=1&title=Issue%20%23546%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23546%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting the GitHub scheduling backend

    • Gather context (docs site had no scheduling page; pulled source from inference-gateway/cli docs/scheduling.md + docs/configuration-reference.md)
    • New page cli-scheduling.md covering both backends, with the github backend end to end
    • Config reference table: all scheduler.* keys + INFER_SCHEDULER_* env vars with defaults
    • Sidebar wiring (both sidebars in .vitepress/config.ts) + cross-link from the Schedule tool section in cli.md
    • bun run lint:md, bun run format:check, bun run build - all pass
    • Committed and PR opened

    What landed

    New page cli-scheduling.md:

    • Local vs github backend table, local daemon behavior, standard cron syntax.
    • GitHub backend: config block, setup steps (gh auth login, GitHub App, Actions secrets - noting the CLI never writes secrets), required secrets (APP_CLIENT_ID, APP_PRIVATE_KEY with the Actions read/write permission needed for run_once, and the provider *_API_KEY list).
    • Save-to-deploy: direct push vs pull_requests: true, private repo auto-creation (<login>/.routines), failed-sync aborts the save.
    • Cron translation table: @daily/@every 10m accepted, @every 7m and * * * * * rejected; UTC-only, 5-field, 5-minute minimum.
    • run_once: workflow self-disables after first fire (file stays, disabled) vs local backend deleting the job.
    • Artifact pull-back: infer-conversations-<run_id>, initial delay, poll interval, max attempts, rate-limit backoff, jsonl-storage-only.
    • Out of scope (first cut): channel delivery, RunRecord sync.
    • Configuration reference table and a troubleshooting section.

    Skipped: duplicating the CLI repo's Telegram walkthroughs and per-operation Schedule tool JSON - those already live in cli.md#schedule, which the new page links to. Add them here if you'd rather this page stand fully alone.

    PR #549 - roadmap board item moved to QA.
    | Branch

  6. moved this from Todo to In progress in 2026on Aug 12, 2026
  7. moved this from In progress to QA in 2026on Aug 12, 2026
  8. moved this from QA to Done in 2026on Aug 13, 2026
  9. inference-gateway-releaser commented on Aug 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.11 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions