mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-26 18:13:21 +01:00
fix time sleep error
This commit is contained in:
parent
e304bebe9c
commit
78a38656bb
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import time
|
||||||
import argparse
|
import argparse
|
||||||
import subprocess
|
import subprocess
|
||||||
import glob
|
import glob
|
||||||
@ -10,7 +10,7 @@ PATH_MONITOR = "/var/bigbluebutton/recording/status/"
|
|||||||
def file_monitor(event_to_check):
|
def file_monitor(event_to_check):
|
||||||
done_files = glob.glob(PATH_MONITOR + event_to_check + "/*.done") # List
|
done_files = glob.glob(PATH_MONITOR + event_to_check + "/*.done") # List
|
||||||
while len(done_files) == 0:
|
while len(done_files) == 0:
|
||||||
os.sleep(5)
|
time.sleep(5)
|
||||||
subprocess.Popen("/usr/local/bigbluebutton/scripts/rap-"+event_to_check+"-worker.rb", cwd="/usr/local/bigbluebutton/core/scripts")
|
subprocess.Popen("/usr/local/bigbluebutton/scripts/rap-"+event_to_check+"-worker.rb", cwd="/usr/local/bigbluebutton/core/scripts")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user