-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: How to run cron jobs #44
Comments
Original comment by Thomas Güttler (Bitbucket: thomas-guettler, GitHub: Unknown): What I am missing:
Do you understand what I am missing? I am missing documentation how the APScheduler gets started. Forgive me, if I am blind. I have not found it in the documentation. |
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm): Maybe there is a big misunderstanding here. APScheduler is a Python library, not a command line tool or daemon. Your questions would make sense if it were one. APScheduler is meant to be used as a part of an existing Python application, so asking about starting it via upstart, init.d etc. doesn't make sense. |
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm): I thought the introduction made it crystal clear. From the short description: Clue #2, from the longer description: If APScheduler can access the application's variables directly, then it runs within the application's process, right? After all this, can there be any confusion as to whether this is a daemon/command line tool or not? |
Original comment by John Matthew (Bitbucket: jmatthew, GitHub: jmatthew): Oh I understand, but you mention CRON-LIKE a few times in the docs, which if your reading it quickly you may think it's cron. Also, more importantly, I think you're the only project that actually does this, which means your way out of the box in terms of what you do (a very good thing). I'll i'm saying is for those people that have mentioned this "issue" it might be worth a quick couple paragraphs on how to implement apscheduler ? J |
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm): Well, there is cron-like scheduling of course, but so there is one in Quartz too, and I've yet to hear anyone mistake Quartz for a daemon or command line tool. As for implementing apscheduler, there are examples as early as the second page in the docs: https://apscheduler.readthedocs.org/en/v2.1.0/#starting-the-scheduler |
Original comment by Unknown Name (Bitbucket: c24b, GitHub: c24b): I see also a great difference between documentation and implementation: scheduling a job using new scheduler.add_job() method say it requires more arguments than described in docs and example: sched.add_job(backup, 'cron', {'day_of_week': 'mon-fri', 'hour': 5, 'minute': 30}) as specified in http://apscheduler.readthedocs.org/en/latest/cronschedule.html thraw a TypeError |
Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm): The "latest" docs refer to APScheduler 3.0 which has yet to be released. This syntax has not even been finalized yet. The documentation on readthedocs is automatically generated whenever I push a commit to bitbucket. Perhaps this is not such a good idea. |
Originally reported by: Thomas Güttler (Bitbucket: thomas-guettler, GitHub: Unknown)
Please explain in the docs how to run example:
http://pythonhosted.org/APScheduler/cronschedule.html#example-1
My question (and I guess other people have this question, too):
How to execute this line?
Example: Linux server boots. The above snippet is installed somewhere, ... but how does this example get executed?
Please tell me, if you don't understand my question.
The text was updated successfully, but these errors were encountered: