From b7796a8f8d351259d514d4c28e2107e7219d11f0 Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Thu, 25 Jul 2024 13:31:49 +0200 Subject: [PATCH] Exclude disabled resources from the schedule.Table produced by Schedules() So the scheduler daemon routine does not create jobs for those. This is a port of the v2.1 policy in that matter. --- core/object/actor_print_schedule.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/object/actor_print_schedule.go b/core/object/actor_print_schedule.go index 4282d6ce8..c55a64204 100644 --- a/core/object/actor_print_schedule.go +++ b/core/object/actor_print_schedule.go @@ -73,6 +73,9 @@ func (t *actor) Schedules() schedule.Table { if !needResMon && r.IsMonitored() { needResMon = true } + if r.IsDisabled() { + continue + } if i, ok := r.(scheduleOptioner); ok { opts := i.ScheduleOptions() rid := r.RID()