Skip to content

Commit

Permalink
Check whether to refresh geoshapes regularly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdutton committed Feb 4, 2019
1 parent 4499a82 commit e585e6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions commons_api/celery.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import os

from celery import Celery
Expand Down Expand Up @@ -32,4 +33,11 @@
'task': 'commons_api.wikidata.tasks.legislature.refresh_districts_queue_periodically',
'schedule': 60,
},
'refresh-geoshapes-periodically': {
'task': 'commons_api.wikidata.tasks.geoshape.refresh_geoshape_queue_periodically',
'schedule': 600,
'kwargs': {
'not_queued_in': datetime.timedelta(14).total_seconds(),
},
},
}

0 comments on commit e585e6e

Please sign in to comment.