Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ymkymkymkymx committed Oct 30, 2020
1 parent 46be7d8 commit 0ccfb45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
web: python scanandshow.py
clock: python taskrunner.py
9 changes: 4 additions & 5 deletions taskrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ def timed_job1():

@sched.scheduled_job('interval', seconds=3)
def timed_job2():
f=open("number1.txt","w")
num=time.clock()
num=str(num)
f.write(num)
f=open("number.txt","r")

num=f.readline()
f.close()
print('This job is run every three seconds.')
print('This is the number in number.txt: {0}'.format(num))

sched.start()

0 comments on commit 0ccfb45

Please sign in to comment.