boxlang-express 0.2.8
Released .
- Added
app.schedule(intervalMs, callback, options)/Scheduler.bx— fixed-interval recurring jobs, thesetIntervalequivalent (deliberately no cron parsing — a real, separable feature this pass doesn't build). One sharedScheduledExecutorServiceper app drives ticks; each tick's callback runs on its own virtual thread, the same request/job-body splitapp.listen()already uses, so a slow job never delays another job's tick. No-overlap is the default (a tick is skipped, not queued, if the previous run hasn't finished — claimed atomically viaAtomicBooleanso the tick thread and the still- running virtual thread can't both think they own the same tick),{ allowOverlap: true }opts out. A thrown error inside a job is caught and logged ([Scheduler] job 'name' threw: ...), never left to kill future ticks — same posture asHttpBridge.bx's dispatch guard andStomp.bx's server-side listener guard.app.getScheduledJobs()is a live introspection getter, same pattern asStomp.bx'sgetConnections()/getSubscriptions().app.close()cancels every job and shuts the scheduler down via the same teardown block that already stops the reload watcher and the HTTP server. In-memory only (no persistence across restarts), no missed-run catch-up, and no clustering — every process instance runs every job independently, the same boundaryStomp.bx's docblock draws for itself around multi-node clustering. See Scheduler.bx and tests/specs/SchedulerSpec.bx (9 specs).