Skip to content

Commit

Permalink
add local scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandersande18 committed May 14, 2022
1 parent 08c80ca commit df2d665
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 90 deletions.
44 changes: 0 additions & 44 deletions main.spec

This file was deleted.

2 changes: 0 additions & 2 deletions scheduler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from apscheduler.schedulers.blocking import BlockingScheduler
import sys, os, subprocess


if os.environ.get('REPORT_ID') is None:
print("请配置环境变量REPORT_ID REPORT_PASSWORD", flush=True)
sys.exit(1)
Expand All @@ -11,7 +10,6 @@

def exec():
p = subprocess.Popen(['python', './main.py', id, passwd])
# p = subprocess.Popen(['./main', id, passwd])
p.wait()
if p.returncode != 0:
print("[WARNING] exited with return code " + str(p.returncode))
Expand Down
44 changes: 0 additions & 44 deletions scheduler.spec

This file was deleted.

0 comments on commit df2d665

Please sign in to comment.