forked from zvtvz/zvt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1)update runner for faster 2)fix init_env.sh for mac 3)fix jq kdata r…
…ecorder bug
- Loading branch information
Showing
5 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
import logging | ||
|
||
from apscheduler.schedulers.background import BackgroundScheduler | ||
|
||
from zvt import init_log | ||
from zvt.factors.ma.common import cal_ma_states | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
sched = BackgroundScheduler() | ||
|
||
|
||
@sched.scheduled_job('cron', hour=20, minute=30) | ||
def run(): | ||
cal_ma_states(start='601000', end='999999') | ||
|
||
|
||
if __name__ == '__main__': | ||
init_log('ma_stats_runner6.log') | ||
|
||
run() | ||
|
||
sched.start() | ||
|
||
sched._thread.join() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters