Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Listed as tested only where an automated test covers it.
| JVM 21 | ✅ No-hang suite; otherwise experimental |
| Node.js 20, Python 3.13+, JVM 17, Ruby 3.x, MariaDB | Expected to work; not covered by tests |
| BullMQ, Celery beat (`beat_max_loop_interval ≤ 1`), pg_cron | ✅ Work without triggers (measured) |
| Celery beat crontab tasks under django-celery-beat's `DatabaseScheduler` | ⚠️ May not fire after a jump; use triggers ([#9](https://github.com/Asmodeus14/ChronoStack/issues/9)) |
| BullMQ and Sidekiq barriers | ✅ Nightly, with real workers |
| node-cron, APScheduler, `setTimeout`-style loops | Need a trigger (measured) |
| Go and other static or setuid binaries | ❌ Not supported (`LD_PRELOAD` can't reach them); flagged by `doctor` |
Expand Down
1 change: 1 addition & 0 deletions docs/GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ After each advance, every service is probed.
|---|---|---|
| **BullMQ** (delayed jobs, job schedulers) | Fires within up to about 10 s (BullMQ's longest wait between checks) | A `bullmq` barrier (section 5) |
| **Celery beat** with `beat_max_loop_interval ≤ 1` (or `celery beat --max-interval 1`) | Fires within about 2 s | Set that option in test/dev |
| **Celery beat** with django-celery-beat's `DatabaseScheduler` (or a subclass), crontab tasks | Interval tasks fire as above, but crontab tasks may never be sent after a jump, even when the scheduler reports them due. Restarting beat sends them once. ([#9](https://github.com/Asmodeus14/ChronoStack/issues/9)) | Declare a **trigger** for each crontab task |
| **sidekiq-cron** (Ruby) | Fires if its 30 s poll lands within 60 s after the job's time (`reschedule_grace_period`); otherwise that run is skipped | Land each stop just after the job's minute (`advance: { to: next 02:15 }`) with a `sidekiq` barrier and `settle: 35s`, or declare a trigger |
| **pg_cron** | Detected automatically; ChronoStack stops the clock on each job's minute | Nothing. Jobs like `*/5 * * * *` run once per stop; `advance --pg-cron-all` runs every occurrence. |
| A worker that polls the database (`WHERE run_at <= now()`) | Runs at its next poll | A barrier (section 5) so ChronoStack waits for it |
Expand Down
1 change: 1 addition & 0 deletions docs/RISKS_AND_LIMITATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
12. pg_cron jobs whose minute or hour field starts with `*` (e.g. `*/5 * * * *`) run at most once per clock stop, not at every occurrence. `advance` reports how many will run; use `--pg-cron-all` (up to 2,000 stops) or `--step` to run more.
13. A trigger that times out is stopped inside its container only if the image has `sh`.
14. The fault proxy works only for URLs your Compose file sets in environment variables (`http://` or `https://` upstreams). Outage windows return an HTTP status; latency, drops and partitions are v0.2.
15. Celery beat with django-celery-beat's `DatabaseScheduler`: crontab tasks may not be sent after a clock jump (interval tasks are fine). Declare triggers for them. Root cause not yet found ([#9](https://github.com/Asmodeus14/ChronoStack/issues/9)).
5. Native host processes: Node only, via `chronostack/register`.
6. External services (Stripe, SendGrid) are not virtualized; use their test-clock features or mocks.
7. Data written with virtual timestamps persists in ChronoStack volumes.
Expand Down
Loading