Skip to content

feat(scheduler): ✨ Control scheduled executions with flow#38

Merged
haskou merged 5 commits into
mainfrom
chore/update-skills
Jul 3, 2026
Merged

feat(scheduler): ✨ Control scheduled executions with flow#38
haskou merged 5 commits into
mainfrom
chore/update-skills

Conversation

@haskou

@haskou haskou commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add the updated local agent skills under .agents/skills.
  • Add @haskou/flow@0.1.2 as a runtime dependency.
  • Wrap scheduler runOnce() execution in Flow with a shared Semaphore(1) so overlapping cron ticks serialize instead of running concurrently.
  • Add scheduler coverage for overlapping executions.

Impact

  • Keeps existing cron scheduling and SchedulerErrorPolicy behavior.
  • Prevents concurrent executions of the same scheduler instance.
  • Does not replace RetryConsumerMiddleware; its current shouldRetry, onRetry, and dynamic delay semantics are more specific than Flow.retry().

Validation

  • yarn lint
  • yarn typecheck
  • yarn test (151 tests passing)

Generated by Codex.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@haskou haskou marked this pull request as ready for review July 3, 2026 15:22

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09b10513e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/infrastructure/scheduler/Scheduler.ts Outdated
@haskou haskou merged commit 3280d0e into main Jul 3, 2026
2 checks passed
@haskou haskou deleted the chore/update-skills branch July 3, 2026 15:42
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