update
This commit is contained in:
parent
8b695dde90
commit
61ca87d173
|
@ -5,9 +5,8 @@
|
|||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="6fcbdb26-1795-4695-b353-57b405f1e401" name="Changes" comment="update">
|
||||
<change afterPath="$PROJECT_DIR$/forever.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/conf/common/push_stream.conf" beforeDir="false" afterPath="$PROJECT_DIR$/conf/common/push_stream.conf" 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" />
|
||||
|
@ -39,15 +38,16 @@
|
|||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"git-widget-placeholder": "master",
|
||||
"last_opened_file_path": "C:/Users/lihai/PycharmProjects/lot_manager",
|
||||
"settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"Python.forever.executor": "Run",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"git-widget-placeholder": "master",
|
||||
"last_opened_file_path": "C:/Users/lihai/PycharmProjects/lot_manager",
|
||||
"settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable"
|
||||
}
|
||||
}</component>
|
||||
}]]></component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="$PROJECT_DIR$/conf" />
|
||||
|
@ -64,8 +64,8 @@
|
|||
<recent name="$PROJECT_DIR$/conf" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager" selected="Shell Script.git_push.sh (1)">
|
||||
<configuration name="t" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
||||
<component name="RunManager" selected="Python.forever">
|
||||
<configuration name="forever" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
||||
<module name="agri_xumu" />
|
||||
<option name="ENV_FILES" value="" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
|
@ -75,10 +75,10 @@
|
|||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="IS_MODULE_SDK" value="false" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/t.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/forever.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
|
@ -163,11 +163,11 @@
|
|||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Python.forever" />
|
||||
<item itemvalue="Shell Script.git_push.sh (1)" />
|
||||
<item itemvalue="Shell Script.git_push.sh" />
|
||||
<item itemvalue="Python.test" />
|
||||
<item itemvalue="Python.video_task" />
|
||||
<item itemvalue="Python.t" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
|
@ -243,7 +243,15 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1709001137522</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="8" />
|
||||
<task id="LOCAL-00008" summary="update">
|
||||
<option name="closed" value="true" />
|
||||
<created>1709346294546</created>
|
||||
<option name="number" value="00008" />
|
||||
<option name="presentableId" value="LOCAL-00008" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1709346294546</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="9" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="UnknownFeatures">
|
||||
|
|
16
forever.py
16
forever.py
|
@ -0,0 +1,16 @@
|
|||
import schedule
|
||||
import time
|
||||
import subprocess
|
||||
|
||||
|
||||
def job():
|
||||
subprocess.Popen(cmd=['supervisorctl reload'], shell=True)
|
||||
print("任务执行了!当前时间:", time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()))
|
||||
|
||||
|
||||
# 每半小时执行一次
|
||||
schedule.every(1).minutes.do(job)
|
||||
|
||||
while True:
|
||||
schedule.run_pending()
|
||||
time.sleep(1)
|
Loading…
Reference in New Issue