Scheduler for py4web ?

193 views
Skip to first unread message

António Ramos

unread,
Oct 30, 2019, 7:52:33 AM10/30/19
to web...@googlegroups.com
Hello,
is the web2py scheduler planned for py4web ???
Regards

Massimo Di Pierro

unread,
Oct 30, 2019, 11:23:30 PM10/30/19
to web2py-users
No. The fact is, it does not need it. py4web is does not have the problem of a custom environment. apps are modules that can be imported. Celery works great with py4web and therefore I recommend using that instead of a custom scheduler.
Message has been deleted

António Ramos

unread,
Nov 1, 2019, 6:21:16 PM11/1/19
to web...@googlegroups.com
You are confusing things.
Web2py Task scheduler is like linux cron but more powerfull because you can task a python function from your code.
Gulp and alike are task automation tools like creating files and folders , compiling jade to html or sass to css. 
Not the same thing.. 
and yes you should be able to use gulp with py4web.


Carlos Zenteno <cmze...@gmail.com> escreveu em sex, 1/11/2019 às 19:42 :
Is a scheduler the same thing as a task manager? 
Can we use GULP with py4web?

--
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/cd75104b-e472-4a08-9c64-343dd0d4c7a4%40googlegroups.com.

Carlos Zenteno

unread,
Nov 1, 2019, 6:43:05 PM11/1/19
to web...@googlegroups.com
Thanks a lot
 I  read a bit and found out the difference.  I erased the post briefly after I wrote it. 

Thanks again.

You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/GoFM0ZTYSBw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAEM0BxNixjcgdL_8LkDQf9iAj1WUxULYi%3DRK7R75m_j2v_VKdQ%40mail.gmail.com.

Marcelo Huerta

unread,
Nov 5, 2019, 8:37:08 AM11/5/19
to web...@googlegroups.com
El jueves, 31 de octubre de 2019, 0:23:30 (UTC-3), Massimo Di Pierro escribió:
No. The fact is, it does not need it. py4web is does not have the problem of a custom environment. apps are modules that can be imported. Celery works great with py4web and therefore I recommend using that instead of a custom scheduler.


Is there a way we could have examples of how Celery would be used with py4web?

Ruslan Gareev

unread,
Nov 5, 2019, 11:59:06 PM11/5/19
to web...@googlegroups.com
Hello. You can google something like: "python celery queue". :)
But using Dramatiq will be better option than Celery.
вторник, 5 ноября 2019 г., 18:37:08 UTC+5 пользователь Marcelo Huerta написал:

Marcelo Huerta

unread,
Nov 6, 2019, 8:19:44 AM11/6/19
to web...@googlegroups.com
El miércoles, 6 de noviembre de 2019, 1:59:06 (UTC-3), Ruslan Gareev escribió:
Hello. You can google something like: "python celery queue". :)

Har har. I wanted an example specifically in the context of py4web because I cannot make sense of them seeing them in other contexts.
 
But using Dramatiq will be better option than Celery.

I will take a look. Hopefully their examples would be easier to understand, I know now that asking here will only produce mockery.

Lovely group!

Dave S

unread,
Nov 6, 2019, 4:16:50 PM11/6/19
to web2py-users


On Wednesday, November 6, 2019 at 5:19:44 AM UTC-8, Marcelo Huerta wrote:
El miércoles, 6 de noviembre de 2019, 1:59:06 (UTC-3), Ruslan Gareev escribió:
Hello. You can google something like: "python celery queue". :)

Har har. I wanted an example specifically in the context of py4web because I cannot make sense of them seeing them in other contexts.

I have only skimmed through the celery information so far, but it sounds to me like you write a module the same way [devil in the details] that you write a scheduler module for web2py.   It's worth discussing whether you use redis for front and back ends around celery, or rabbitmq in front.  Import your models as needed to talk to the app's database.
 
 
But using Dramatiq will be better option than Celery.

I will take a look. Hopefully their examples would be easier to understand, I know now that asking here will only produce mockery.

If you think that you've been mocked here, I'm sorry.  This group has never been one for mockery or for in-fighting.  I say that as someone who comes here for help, but shares what I can help others with.


Lovely group!


It is.  An oasis.  Compare list.postfix.users, where many posts aren't even answered.

/dps
 

Ruslan Gareev

unread,
Nov 7, 2019, 1:52:21 AM11/7/19
to web...@googlegroups.com
There is no special context in py4web that may be different from standart python modules context. So any examples for celery will fit to py4web with minimal changes for your app context.

Web2py have his own workflow and that had made Massimo to create web2py's own scheduler.

среда, 6 ноября 2019 г., 18:19:44 UTC+5 пользователь Marcelo Huerta написал:
Reply all
Reply to author
Forward
0 new messages