delete unrelated files
This commit is contained in:
parent
1ac6d0bb9c
commit
a4b63dd463
@ -1,31 +0,0 @@
|
||||
import arxiv_bot
|
||||
import feeds
|
||||
import email_sender
|
||||
import time
|
||||
import subscriber_utils
|
||||
import utils
|
||||
from croniter import croniter
|
||||
import threading
|
||||
|
||||
class test_service():
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
pass
|
||||
|
||||
def do(self):
|
||||
print('Job {0} run!'.format(self.name))
|
||||
|
||||
class mail_service():
|
||||
def __init__(self, emailer):
|
||||
self.emailer = emailer
|
||||
|
||||
def do(self):
|
||||
self.emailer.send_daily_email()
|
||||
|
||||
class reload_subscriber():
|
||||
def __init__(self, subscriber_mgr):
|
||||
self.mgr = subscriber_mgr
|
||||
|
||||
def do(self):
|
||||
self.mgr.load()
|
||||
|
||||
21
try.py
21
try.py
@ -1,21 +0,0 @@
|
||||
import arxiv_service
|
||||
import time
|
||||
|
||||
now = arxiv_service.cron_time(time.localtime(time.time()))
|
||||
# now.show()
|
||||
# while True:
|
||||
# now.next_day()
|
||||
# now.show()
|
||||
|
||||
# running time
|
||||
# minute hour day month week year
|
||||
# * means always.
|
||||
# a-b means from a to b (a and b included)
|
||||
# a means run at this time.
|
||||
# must match all to execute a command.
|
||||
|
||||
schedule = arxiv_service.cron_expr('0 0 29 2 * *')
|
||||
for i in range(10):
|
||||
now = schedule.next_run(now)
|
||||
now.show()
|
||||
print(now.to_struct_time())
|
||||
Loading…
Reference in New Issue
Block a user