Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin report for domains which should have data source restriction FF enabled #34813

Merged
merged 13 commits into from
Jul 17, 2024
2 changes: 1 addition & 1 deletion corehq/apps/hqwebapp/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def clear_expired_oauth_tokens():
call_command('cleartokens')


@periodic_task(run_every=crontab(day_of_week=1))
@periodic_task(run_every=crontab(minute=0, hour=1, day_of_week='mon'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did the day_of_week=1 sent the email at a wrong time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it. Apparently there was emails sent every hour or so, but this new configuration seems to have fixed it. It's weird.

def send_domain_ucr_data_info_to_admins():
from corehq.apps.reports.dispatcher import AdminReportDispatcher
from corehq.apps.reports.filters.select import UCRRebuildStatusFilter
Expand Down
Loading