Compare commits

...

4 Commits

Author SHA1 Message Date
xyj f43b4ed4ea update 2024-03-05 09:59:23 +08:00
xyj b5e910e0db update 2024-03-05 09:57:41 +08:00
xyj 1277fcc9f8 update 2024-03-05 09:31:47 +08:00
xyj b8f06038fe update 2024-03-05 09:31:04 +08:00
2 changed files with 46 additions and 3 deletions

View File

@ -6,6 +6,7 @@
<component name="ChangeListManager">
<list default="true" id="6fcbdb26-1795-4695-b353-57b405f1e401" name="Changes" comment="update">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/forever.py" beforeDir="false" afterPath="$PROJECT_DIR$/forever.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -330,7 +331,47 @@
<option name="project" value="LOCAL" />
<updated>1709517267767</updated>
</task>
<option name="localTasksCounter" value="19" />
<task id="LOCAL-00019" summary="update">
<option name="closed" value="true" />
<created>1709519326365</created>
<option name="number" value="00019" />
<option name="presentableId" value="LOCAL-00019" />
<option name="project" value="LOCAL" />
<updated>1709519326365</updated>
</task>
<task id="LOCAL-00020" summary="update">
<option name="closed" value="true" />
<created>1709536852385</created>
<option name="number" value="00020" />
<option name="presentableId" value="LOCAL-00020" />
<option name="project" value="LOCAL" />
<updated>1709536852385</updated>
</task>
<task id="LOCAL-00021" summary="update">
<option name="closed" value="true" />
<created>1709602266028</created>
<option name="number" value="00021" />
<option name="presentableId" value="LOCAL-00021" />
<option name="project" value="LOCAL" />
<updated>1709602266028</updated>
</task>
<task id="LOCAL-00022" summary="update">
<option name="closed" value="true" />
<created>1709602308371</created>
<option name="number" value="00022" />
<option name="presentableId" value="LOCAL-00022" />
<option name="project" value="LOCAL" />
<updated>1709602308371</updated>
</task>
<task id="LOCAL-00023" summary="update">
<option name="closed" value="true" />
<created>1709603862500</created>
<option name="number" value="00023" />
<option name="presentableId" value="LOCAL-00023" />
<option name="project" value="LOCAL" />
<updated>1709603862500</updated>
</task>
<option name="localTasksCounter" value="24" />
<servers />
</component>
<component name="UnknownFeatures">

View File

@ -4,11 +4,13 @@ import subprocess
def job():
subprocess.Popen(['supervisorctl reload'], shell=True)
subprocess.Popen(['supervisorctl restart push_stream'], shell=True)
# 每半小时执行一次
schedule.every(10).minutes.do(job)
schedule.every(5).minutes.do(job)
try:
while True:
schedule.run_pending()