how can i add column to scheduler tables

36 views
Skip to first unread message

narges Rezaei

unread,
Apr 5, 2016, 6:20:59 AM4/5/16
to web2py-users
i want add column to scheduler_task table (extra field)  but i can not.
Could any one help me figure out the problem?
Thanks!

Leonel Câmara

unread,
Apr 5, 2016, 8:10:33 AM4/5/16
to web2py-users
This is a terrible idea, why do you want to do this?

narges Rezaei

unread,
Apr 5, 2016, 8:35:35 AM4/5/16
to web...@googlegroups.com
i have some services that  send messages in specific times
a service can have some function to doing. 
a function add to scheduler_task to execute in specific time ,for example after 2 week , i want delete my service after one week  and after then i want disable all record of scheduler_task that related to this service  . 
or for example i want edit this task's args that it will execute after 2 week

On Tue, Apr 5, 2016 at 4:40 PM, Leonel Câmara <leonel...@gmail.com> wrote:
This is a terrible idea, why do you want to do this?

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/JD57fRDIWRU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

narges Rezaei

unread,
Apr 5, 2016, 8:36:21 AM4/5/16
to web2py-users
i have some services that  send messages in specific times
a service can have some function to doing. 
a function add to scheduler_task to execute in specific time ,for example after 2 week , i want delete my service after one week  and after then i want disable all record of scheduler_task that related to this service  . 
or for example i want edit this task's args that it will execute after 2 week

Dave S

unread,
Apr 5, 2016, 1:03:51 PM4/5/16
to web2py-users


On Tuesday, April 5, 2016 at 5:35:35 AM UTC-7, narges Rezaei wrote:
i have some services that  send messages in specific times
a service can have some function to doing. 
a function add to scheduler_task to execute in specific time ,for example after 2 week , i want delete my service after one week  and after then i want disable all record of scheduler_task that related to this service  . 
or for example i want edit this task's args that it will execute after 2 week

The scheduler already supports running a task at a specific time, and to limit it to just once.  No extra fields are needed.

You can also use ordinary database operations to drop specific records.

/dps


 

narges Rezaei

unread,
Apr 6, 2016, 12:59:33 AM4/6/16
to web2py-users
ok و I understood.
thanks a lot!
I've got this problem solved.

Dave S

unread,
Apr 6, 2016, 1:37:55 AM4/6/16
to web2py-users
On Tuesday, April 5, 2016 at 9:59:33 PM UTC-7, narges Rezaei wrote:
ok و I understood.
thanks a lot!
I've got this problem solved.


Good news!

/dps
Reply all
Reply to author
Forward
0 new messages