Skip to content

v0.15.0

Compare
Choose a tag to compare
@janbjorge janbjorge released this 11 Nov 18:02
· 92 commits to main since this release
5b54585

PGQueuer v0.15.0 Release Notes

Im excited to introduce a new features and enhancements in this release; support for scheduling recurring jobs using cron-like syntax.

What's Changed

  • Public Interfaces Defined: Updated __init__.py to define public interfaces more clearly (#186).
  • Scheduling with Crontab Syntax: You can now schedule functions using cron-like expressions for periodic task execution (#188).
  • Added SchedulerManager to Public API: Included SchedulerManager in __init__.py for easy access (#191).
  • Added Scheduler Example to README: Enhanced documentation with examples on using the new scheduling feature (#190).
  • Batch RPS Events: Implemented batching to improve the handling of rate-per-second (RPS) events (#192).

Note: In order to use the new scheduling feature, a migration step is required. Please run:

python -m pgqueuer upgrade

Example Usage

To schedule a recurring task every minute:

@scheduler.schedule("sync_data", "* * * * *")
async def sync_data(schedule: Schedule) -> None:
    print("Running scheduled sync_data task")

Run the scheduler using the CLI:

pgq run myapp.create_scheduler

Full Changelog: v0.14.1...v0.15.0