call into the rendering-task to deploy the tasks onto the cubes after rendering
This commit is contained in:
parent
d11886698a
commit
a8e0fc7da2
3 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
|
||||
import subprocess
|
||||
from renderlib import *
|
||||
|
||||
# URL to Schedule-XML
|
||||
|
@ -198,3 +199,8 @@ def ticket(ticket):
|
|||
'$personnames': ticket.get('Fahrplan.Person_list')
|
||||
}
|
||||
)
|
||||
|
||||
def deploy(ticket, task):
|
||||
for encoder in range(1, 6):
|
||||
print("encoder{n}".format(n=encoder))
|
||||
subprocess.check_call('rsync -v --bwlimit=1000 --progress -e="ssh -A voc@gw.ep14.c3voc.de ssh -A voc@encoder{n}.lan.c3voc.de" {file} :{file}'.format(n=encoder, file=task.outfile), shell=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue