All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
- Feat: Add option to pass MongoClientOptions to momo (#857)
- Feat: Add index for scheduleId column (#839)
- Chore: Dependency updates
- Chore: Dependency updates
- Chore: Dependency updates
- Feat: handle improper error objects (like null, undefined ...) returned from jobs gracefully (#720)
- Fix: maxRunning is now always respected, also for longer running jobs (#706)
- Fix: remove error spam when checking for active schedules (#624)
- Fix: fixed CVE in fast-xml-parser
- Feature: only one schedule with a given name can be active at the same time
- if an instance stops running, a different instance will take over the job scheduling
- Fix: Fixed the usage to mongo collection prefixes
- Breaking: dropped Node 14 support (still works with node 14 though)
- Breaking: Removed
executions
collection and useschedules
collection - Breaking: Schedules need a name now
- Breaking: Removed
startJob
,stopJob
,cancelJob
, andremoveJob
from the schedule
- Fix: Dependency upgrades (fix CVE-2023-22467)
- Feature: jobs can receive parameters (#405)
- Feature:
interval
can be given as a number or in human-readable format - Feature:
firstRunAfter
can be given as a number or in human-readable format - Feature: support cron jobs in addition to interval jobs
- Breaking: Remove
validate
method; it's replaced bytryToJob
- Breaking:
MomoJobBuilder::withInterval
->MomoJobBuilder::withSchedule
- Breaking: Removed
MomoJobBuilder::withFirstRunAfter
; now part ofMomoJobBuilder::withSchedule
- Fix: catch exceptions thrown by momo's internal ping
- Feature: schedule a job to run with delay (option
firstRunAfter
) - Feature: offer configuration for a prefix of all used collections (
collectionsPrefix
) - Feature: the ping interval that momo instances need to keep their executions valid is now configurable
- Breaking:
immediate
was removed; instead, setfirstRunAfter
to0
for immediate execution - Breaking: dropped Node 10 support
- Feature: compatibility with mongodb v4 (removed typeorm dependency)
- Breaking: moved utility functions into classes
check
andclear
are now part of theSchedule
- Feature: builder pattern for schedules and jobs
- Fix: remove stale executions from db
- Fix: fix removal of all jobs from the schedule
- Fix: fix log statement after scheduling a job
- Breaking: split API to start/stop/cancel/remove jobs into functions to handle a specific job and to handle all jobs
- Breaking: API to list jobs or get a single job now return job descriptions instead of the job itself
- initial release