~yerinalexey/pcrond

f72e3e1b200564b7f4108171087a9d274379a721 — Alexey Yerin 5 months ago 1f29ae5
fix: update code to not use default scheduler
2 files changed, 6 insertions(+), 2 deletions(-)

M README.rst
M test_scheduler.py
M README.rst => README.rst +3 -1
@@ 47,7 47,9 @@ For example:

.. code-block:: python

    from pcrond import scheduler
    from pcrond import Scheduler

    scheduler = Scheduler()
    scheduler.add_job("30 4 * * 0", my_python_func)     #every sunday at 4:30
    scheduler.main_loop()


M test_scheduler.py => test_scheduler.py +3 -1
@@ 3,7 3,9 @@
import unittest
import sys
from datetime import datetime as d, timedelta
from pcrond import scheduler, Job, Parser
from pcrond import Scheduler, Job, Parser

scheduler = Scheduler()

def do_nothing():
    pass