You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
Looks like lost :((
I fixed it with modifying this:
def get_from_database(self):
d = {}
for doc in PeriodicTask.objects():
if doc.enabled:
d[doc.name] = MongoScheduleEntry(doc)
return d
And remapping tick method:
def tick(self, *args, **kwargs):
"""Run a tick - one iteration of the scheduler.
Executes one due task per call.
Returns:
float: preferred delay in seconds for next call.
"""
adjust = self.adjust
intervals = []
for entry in self.schedule.values():
is_due, next_time_to_run = self.is_due(entry)
intervals.append(adjust(next_time_to_run))
if is_due:
next_entry = self.reserve(entry)
self.apply_entry(entry, producer=self.producer)
return min(intervals + [self.sync_every])
The text was updated successfully, but these errors were encountered:
Looks like lost :((
I fixed it with modifying this:
And remapping tick method:
The text was updated successfully, but these errors were encountered: