Open premudeshi opened 9 months ago
Setting all_tenants
to true will result in a periodic task being created for all tenants in their respective schemas. The configuration options will all be the same, so you can't change the time individually (apart from via the time zone setting). The generate_beat_schedule
function is just a helper to save you having to duplicate a lot of the beat schedule dict. You can still manually add entries if you need more control. Check out the source for that function here.
You can also create and manage periodic tasks in the Django admin, which sounds like what you're after in this case. That allows admin users in each tenant to configure the scheduling as normal. See here. The app.conf.beat_schedule
is a static definition of tasks that you know you want in advance, so it doesn't sound appropriate for your situation.
Hello,
This might be a very stupid question, but what does the
all_tenants
attribute do when creating a beat schedule?For example, I want to create a task that runs at 5am everyday for each tenant, but I would like the tenant to be able to change the time as they please. Would I set
all_tenants
to true or false?