Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
b943601d
Unverified
Commit
b943601d
authored
Apr 24, 2022
by
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
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
backend/cron_tasks.py
View file @
b943601d
...
...
@@ -25,7 +25,7 @@ logger = logging.getLogger("django")
# @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
)
def
_update_currencies
(
num
):
update_currencies
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment