Unverified Commit b943601d authored by Florent Chehab's avatar Florent Chehab
Browse files

feat(currency-rates): update once every day to reduce quota usage

* Currently we are using too many API calls
parent 174bd6c1
Pipeline #98123 canceled with stages
...@@ -25,7 +25,7 @@ logger = logging.getLogger("django") ...@@ -25,7 +25,7 @@ logger = logging.getLogger("django")
# @timer(60, target="spooler") # use this for tests # @timer(60, target="spooler") # use this for tests
@timer(3 * 60 * 60, target="spooler") # run it three hours @cron(5, 0, -1, -1, -1, target="spooler") # everyday at 5 past midnight
@harakiri(40) @harakiri(40)
def _update_currencies(num): def _update_currencies(num):
update_currencies() update_currencies()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment