Skip to content

Commit

Permalink
Revert "Temporarily disable 2FA stats (pypi#11699)"
Browse files Browse the repository at this point in the history
This reverts commit a7bfae6.
  • Loading branch information
di committed Jun 29, 2022
1 parent 0ea63b9 commit 0a36118
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions warehouse/packaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
from warehouse.manage.tasks import update_role_invitation_status
from warehouse.packaging.interfaces import IDocsStorage, IFileStorage, ISimpleStorage
from warehouse.packaging.models import File, Project, Release, Role
from warehouse.packaging.tasks import (
from warehouse.packaging.tasks import ( # sync_bigquery_release_files,
compute_2fa_mandate,
compute_2fa_metrics,
compute_trending,
update_description_html,
)
Expand Down Expand Up @@ -107,7 +108,7 @@ def includeme(config):
config.add_periodic_task(crontab(minute=0, hour=3), compute_2fa_mandate)

# Add a periodic task to generate 2FA metrics
# config.add_periodic_task(crontab(minute="*/5"), compute_2fa_metrics)
config.add_periodic_task(crontab(minute="*/5"), compute_2fa_metrics)

# Add a periodic task to compute trending once a day, assuming we have
# been configured to be able to access BigQuery.
Expand Down

0 comments on commit 0a36118

Please sign in to comment.