Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Disabling a single task in the MongoDB collection seems to disable all tasks #69

Open
dmorina opened this issue Feb 25, 2022 · 2 comments

Comments

@dmorina
Copy link

dmorina commented Feb 25, 2022

I set the enabled field to false for one of the tasks and that resulted in all tasks not being scheduled anymore. The issue resolves once you set the enabled flag to true.

@FurkanSalih
Copy link

FurkanSalih commented Jun 7, 2022

Yeah, I encountered same problem too.

@Jerkka
Copy link

Jerkka commented Apr 25, 2024

Encountered the problem and fixed the issue by patching Mongoscheduler.get_from_database

self.sync()
d = {}
for doc in self.Model.objects():
    if doc.enabled:
        d[doc.name] = self.Entry(doc)
return d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants