From 2b39a614425637c3f223d1dd1105084a5f6552b3 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 11 Mar 2019 12:18:51 +0100 Subject: [PATCH] increased task frequency for refreshes. decreased for bookkeeping --- tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks.py b/tasks.py index 15f40c2..bcbbc50 100644 --- a/tasks.py +++ b/tasks.py @@ -438,12 +438,12 @@ def update_mastodon_instances_popularity(): db.session.commit() -app.add_periodic_task(120, periodic_cleanup) app.add_periodic_task(40, queue_fetch_for_most_stale_accounts) app.add_periodic_task(9, queue_deletes) -app.add_periodic_task(60, refresh_account_with_oldest_post) -app.add_periodic_task(180, refresh_account_with_longest_time_since_refresh) -app.add_periodic_task(61, update_mastodon_instances_popularity) +app.add_periodic_task(25, refresh_account_with_oldest_post) +app.add_periodic_task(50, refresh_account_with_longest_time_since_refresh) +app.add_periodic_task(300, periodic_cleanup) +app.add_periodic_task(300, update_mastodon_instances_popularity) if __name__ == '__main__': app.worker_main()