update edits every 12 hours
This commit is contained in:
parent
ebf2ba4dbd
commit
f66de47798
1 changed files with 8 additions and 1 deletions
9
tasks.py
9
tasks.py
|
@ -18,4 +18,11 @@ def subtitles_user(**kwargs):
|
||||||
except:
|
except:
|
||||||
pass
|
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
|
||||||
|
|
Loading…
Reference in a new issue