I use web2py with nginx.Now I need cron . I have read, that habe to use "-Y" to activate it. But where is the place for this option, which configuration file?Regards, Martin
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAMcwXCexnSYtV7X5VyW%3DGF6h8gcc1GPX%2BJBiZXBssK3H4C5PzA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CACWMBMN4PihiG72_4-AOAOD6Oy-12fzfrR84NesodgBoiJPfdQ%40mail.gmail.com.
Yes, I could use the scheduler. But it's a very small app (only 50 lines of code) and I wanted to learn how to use cron.Regards, Martin
AGRogers <roge...@gmail.com> schrieb am Do., 23. Juli 2020, 10:56:
Sorry, can't help there. I have just started to use the Scheduler which is part of web2py. It was easy to setup and seems to work well. Is there a reason you can't use it?
On Thu, 23 Jul 2020, 1:53 pm Martin Weissenboeck, <mwei...@gmail.com> wrote:
--I use web2py with nginx.Now I need cron . I have read, that habe to use "-Y" to activate it. But where is the place for this option, which configuration file?Regards, Martin
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAMcwXCexnSYtV7X5VyW%3DGF6h8gcc1GPX%2BJBiZXBssK3H4C5PzA%40mail.gmail.com.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/5d7799dc-f285-48c9-9c34-0f4ef140881eo%40googlegroups.com.
Try to avoid web2py cron, and use a background process instead. web2py cron can start too many Python instances and cause excessive memory usage.
# Runs every 5 minutes.
*/5 * * * * python3 /path/to/web2py.py --no_gui --no-banner -S <web2py_app_name> -M -R /path/to/process/background_process.py--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4cb3cc28-fb91-4459-b221-695f8219da01o%40googlegroups.com.
Just FYI, the web2py book states:Try to avoid web2py cron, and use a background process instead. web2py cron can start too many Python instances and cause excessive memory usage.Using scheduler means an additional long running process using up memory to monitor and manage the scheduler.
I'd recommend using your system crontab to run any background processes. This can be invoked within the full web2py environment (if needed) from crontab as follows:# Runs every 5 minutes.
*/5 * * * * python3 /path/to/web2py.py --no_gui --no-banner -S <web2py_app_name> -M -R /path/to/process/background_process.py
HTH,
This is a problem for you? I've had my scheduler running on AWS and Postgres for months without issue. I actually have a second scheduler running in sqlite3 on the same machine. No issue.
Things that aren't python are better run via system cron, but the scheduler does a fine job for application-related pythonic work.