
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@nl-framework/scheduler
Advanced tools
Task scheduling utilities for nl-framework with cron, interval, and timeout decorators powered by Bun workers.
Task scheduling utilities for the Nael Framework. Inspired by NestJS Schedule, this package lets you decorate injectable services with cron, interval, and timeout jobs, backed by Bun Workers for accurate timing that won't block your main event loop.
@Cron, @Interval, and @Timeout decorators with optional names, runOnInit, and maxRuns controlsSchedulerService with runtime APIs for dynamic jobsSchedulerRegistry for inspecting and managing registered jobs at runtimebun add @nl-framework/scheduler
import { Injectable, Module } from '@nl-framework/core';
import { SchedulerModule, SchedulerService, Cron } from '@nl-framework/scheduler';
@Injectable()
class ReportService {
constructor(private readonly scheduler: SchedulerService) {}
@Cron('0 * * * *', { runOnInit: true })
async hourlyReport() {
// ...generate report
}
async onModuleInit() {
await this.scheduler.registerDecoratedTarget(this);
}
}
@Module({
imports: [SchedulerModule.forFeature(ReportService)],
})
class ReportingModule {}
SchedulerModule.forFeature(ReportService) (or pass an array for multiple schedulers) to register your injectable class as a scheduler feature.SchedulerService and call registerDecoratedTarget (usually inside onModuleInit) to activate all decorated methods.The SchedulerService exposes imperative APIs for dynamic scheduling:
await scheduler.scheduleInterval('cleanup', 60_000, () => cleanup(), { maxRuns: 10 });
await scheduler.cancel('cleanup');
SchedulerRegistry maintains a snapshot of active jobs and powers the scheduler.list*() helpers for observability.
In tests you can mock the worker by providing a custom SchedulerWorkerFactory when creating the module, enabling deterministic execution without spinning up a real worker.
Apache-2.0. See the repository root LICENSE file for details.
FAQs
Task scheduling utilities for nl-framework with cron, interval, and timeout decorators powered by Bun workers.
We found that @nl-framework/scheduler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.