I shall use the following solution: the scheduled function checks if there is a conversation. If yes, it schedules a copy of itself with a start time 2 minutes in the future and returns without any further action.
Thank you for the discussion! Leonel Câmara <leonelcam...@gmail.com> schrieb am Mo., 9. Juli 2018, 20:02: > The only way to guarantee that it will absolutely not happen is to have > some kind of lock or use the task reschedules itself option which would > amount to polling. You can use the web2py included portalocker. > > Frankly I would go for a much simpler solution, just clearly differentiate > between chatbot and scheduled communications, maybe put a big text header > clearly marking the latter ones. Then it won't matter that they come in the > middle of the conversation, it will probably be a rare occurrence anyway. > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.