update edits every 12 hours

This commit is contained in:
j 2018-11-15 15:31:46 +00:00
parent ebf2ba4dbd
commit f66de47798
1 changed files with 8 additions and 1 deletions

View File

@ -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