Skip to content

feat: scheduled tasks#11569

Draft
owengo wants to merge 1 commit intodanny-avila:mainfrom
openwengo:pr_scheduled_tasks
Draft

feat: scheduled tasks#11569
owengo wants to merge 1 commit intodanny-avila:mainfrom
openwengo:pr_scheduled_tasks

Conversation

@owengo
Copy link
Contributor

@owengo owengo commented Jan 29, 2026

Pull Request Template

⚠️ Before Submitting a PR, Please Review:

  • Please ensure that you have thoroughly read and understood the Contributing Docs before submitting your Pull Request.

⚠️ Documentation Updates Notice:

  • Kindly note that documentation updates are managed in this repository: librechat.ai

Summary

Adds a per‑user scheduling system that can run an agent automatically on a cron schedule, create a new conversation on success, and record failures. Users can create multiple schedules per agent and edit/enable/disable them from the new Scheduled Tasks panel. The UI includes a zero‑knowledge cron builder (minute/hour/day/month dropdowns) with a human‑readable preview plus an Advanced mode for direct cron input; timezone is required. On the backend, a scheduler service executes tasks with queueing/concurrency limits, max runtime enforcement, and failure logging; it uses the latest agent version at run time and supports agent variables (e.g., {{current_date}}). Admins can set a global minimum interval and max concurrent runs in librechat.yaml to prevent spikes.

image

Change Type

Please delete any irrelevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Translation update

Testing

This is a draft, all code is generated by codex.
I will add a test suite and documentation if it has some chance to be accepted.

Test Configuration:

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.
  • A pull request for updating the documentation has been submitted.

@owengo owengo marked this pull request as draft January 29, 2026 16:28
@owengo owengo force-pushed the pr_scheduled_tasks branch from ce65743 to 00025ea Compare January 29, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants