(scheduler) Remove unused trait

This commit is contained in:
John Spray
2023-12-20 10:39:31 +00:00
parent b7e0b4a866
commit 280c53fa5b

View File

@@ -96,21 +96,6 @@ pub(super) trait TenantScoped {
fn get_tenant_shard_id(&self) -> &TenantShardId;
}
pub(super) trait ScheduledJob {
/// Indicative intended time of execution: jobs are executed _after_ this time,
/// but how much after is an indicator of whether we're keeping up with schedudling
/// goals.
fn get_target_time(&self) -> Option<Instant> {
None
}
/// If the job runs on a periodic basis, expose the period here. This is used
/// together with the target time to determine whether the job is considered late.
fn get_period(&self) -> Option<Duration> {
None
}
}
/// For types that contain a Barrier that may be waited on
pub(super) trait HasBarrier {
fn get_barrier(&self) -> Barrier;