Architecturally 0.6 is much different from the previous versions. If you didn't implement your own scheduler, this version's only big change is the adding a reference of the scheduler when creating/removing notifications of a job.
The JobSchedulerWithoutSync trait has been removed. The new_with_scheduler method accordingly also. Replaced with new_with_storage_and_code().
JobStore trait has been removed. Replaced by MetadataStore and NotificationStore traits.
No longer used.
JobSchedulerWithoutSync trait deletion and default implementation SimpleJobScheduler removed.
Removed as JobStore trait has been removed.
The first parameter to all of these functions on the JobLocked type needs to pass a reference to the scheduler as a first parameter.
Affected methods:
Affected | |
---|---|
JobLocked::on_notifications_add | |
JobLocked::on_start_notification_add | JobLocked::on_done_notification_add |
JobLocked::on_removed_notification_add | JobLocked::on_stop_notification_add |
JobLocked::on_notification_removal | |
JobLocked::on_start_notification_remove | JobLocked::on_done_notification_remove |
JobLocked::on_removed_notification_remove | JobLocked::on_stop_notification_remove |
Custom job metadata, job notification, job code and notification providers with the scheduler.
Trait needed by the scheduler to schedule jobs.
Trait needed by the scheduler to run notifications on job start/scheduled/stop/removals.
Generic trait that provides a PinnedGetFuture for a UUID.
Trait that provides the runnable closures for the scheduler. Specific type of ToCode. Default implementation SimpleJobCode.
Trait that provides the runnable notification closures for the scheduler. Specific type of ToCode. Default implementation SimpleNotificationCode.
Default implementation for the MetadataStore.
Default implementation for the NotificationStore.
Postgres implementation of the MetadataStore. Needs postgres_storage feature.
Postgres implementation of the NotificationStore. Needs postgres_storage feature.
Nats implementation of the MetadataStore. Needs nats_storage feature.
Nats implementation of the NotificationStore. Needs nats_storage feature.