lib/resque/scheduler/scheduling_extensions.rb in resque-scheduler-4.8.0 vs lib/resque/scheduler/scheduling_extensions.rb in resque-scheduler-4.9.0
- old
+ new
@@ -89,11 +89,11 @@
redis.hset(:persistent_schedules, name, encode(config))
else
non_persistent_schedules[name] = decode(encode(config))
end
- redis.sadd(:schedules_changed, name)
+ redis.sadd(:schedules_changed, [name])
reload_schedule! if reload
end
# retrive the schedule configuration for the given name
def fetch_schedule(name)
@@ -103,10 +103,10 @@
# remove a given schedule by name
# Preventing a reload is optional and available to batch operations
def remove_schedule(name, reload = true)
non_persistent_schedules.delete(name)
redis.hdel(:persistent_schedules, name)
- redis.sadd(:schedules_changed, name)
+ redis.sadd(:schedules_changed, [name])
reload_schedule! if reload
end
private