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

Comment out update weight task as it is no longer needed #2987

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions augur/tasks/init/celery_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
# Note: I think self.app.engine would work but leaving it to try later
engine = get_engine()

logger = AugurLogger(logger_name).get_logger()

Check warning on line 83 in augur/tasks/init/celery_app.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'logger' from outer scope (line 23) (redefined-outer-name) Raw Output: augur/tasks/init/celery_app.py:83:8: W0621: Redefining name 'logger' from outer scope (line 23) (redefined-outer-name)

Check warning on line 83 in augur/tasks/init/celery_app.py

View workflow job for this annotation

GitHub Actions / runner / pylint

[pylint] reported by reviewdog 🐶 W0621: Redefining name 'logger' from outer scope (line 23) (redefined-outer-name) Raw Output: augur/tasks/init/celery_app.py:83:8: W0621: Redefining name 'logger' from outer scope (line 23) (redefined-outer-name)

logger.error(f"Task {task_id} raised exception: {exc}\n Traceback: {''.join(traceback.format_exception(None, exc, exc.__traceback__))}")

Expand Down Expand Up @@ -226,8 +226,8 @@
logger.info(f"Scheduling refresh materialized view every night at 1am CDT")
sender.add_periodic_task(datetime.timedelta(days=mat_views_interval), refresh_materialized_views.s())

logger.info(f"Scheduling update of collection weights on midnight each day")
sender.add_periodic_task(crontab(hour=0, minute=0),augur_collection_update_weights.s())
# logger.info(f"Scheduling update of collection weights on midnight each day")
# sender.add_periodic_task(crontab(hour=0, minute=0),augur_collection_update_weights.s())

logger.info(f"Setting 404 repos to be marked for retry on midnight each day")
sender.add_periodic_task(crontab(hour=0, minute=0),retry_errored_repos.s())
Expand Down
Loading