Skip to content

Commit

Permalink
janitor: run job every 10 minutes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed May 11, 2023
1 parent 65dd159 commit 75d6d36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion asu/janitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,9 @@ def update(config):

update_meta_json(config)

# get_queue().enqueue_in(timedelta(minutes=10), update)
Queue(connection=get_redis()).enqueue_in(
timedelta(minutes=10),
update,
config,
job_timeout="1m",
)

0 comments on commit 75d6d36

Please sign in to comment.