From f66de47798b436fddec181687e3c38b210f4acb8 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 15 Nov 2018 15:31:46 +0000 Subject: [PATCH] update edits every 12 hours --- tasks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index f1e72c4..d9a6878 100644 --- a/tasks.py +++ b/tasks.py @@ -18,4 +18,11 @@ def subtitles_user(**kwargs): except: pass - +@periodic_task(run_every=timedelta(hours=12), queue='encoding') +def render_edits(**kwargs): + path = '/home/pandora/pandora_render/render_public_edits.py' + if os.path.exists(path) + try: + subprocess.call([path]) + except: + pass