Re: [web2py] Re: to be or not to be... run by scheduler

2017-10-30 Thread Manuele Pesenti

Ok that's the problem, I'm using a 2.14.6 release.

Thanks Anthony and others


On 28/10/2017 13:14, Anthony wrote:

That was a bug but should be fixed in web2py 2.15.

If you can't upgrade, as an alternative, see:

https://groups.google.com/d/msg/web2py/JeE6jLP-qjI/MXS0MVdOCQAJ

Anthony


--
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.


Re: [web2py] Re: to be or not to be... run by scheduler

2017-10-28 Thread Anthony
On Thursday, October 26, 2017 at 3:57:11 AM UTC-4, Manuele wrote:
> It seams that the parameter request.is_scheduler is always set to false 
> on my colleague windows system
> 
> could it be a possible bug? Any other experience?

That was a bug but should be fixed in web2py 2.15.

If you can't upgrade, as an alternative, see:

https://groups.google.com/d/msg/web2py/JeE6jLP-qjI/MXS0MVdOCQAJ

Anthony

-- 
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.


Re: [web2py] Re: to be or not to be... run by scheduler

2017-10-28 Thread Dave S


On Thursday, October 26, 2017 at 12:57:11 AM UTC-7, Manuele wrote:
>
> It seams that the parameter request.is_scheduler is always set to false 
> on my colleague windows system 
>
> could it be a possible bug? Any other experience? 
>
>  M. 
>
>
I can confirm that on AWS linux, request.is_scheduler is true for functions 
reached by -K and false for functions reached by -S.

On Windows, 2.14.6 sets request.is_scheduler false for browser requests, at 
least when using Rocket.

/dps

 

>
> On 20/10/2017 17:20, Anthony wrote: 
> > If it is a scheduler execution, request.is_scheduler will be True. 
> > 
> > Anthony 
>
>

-- 
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.


Re: [web2py] Re: to be or not to be... run by scheduler

2017-10-26 Thread Manuele Pesenti
It seams that the parameter request.is_scheduler is always set to false 
on my colleague windows system


could it be a possible bug? Any other experience?

    M.


On 20/10/2017 17:20, Anthony wrote:

If it is a scheduler execution, request.is_scheduler will be True.

Anthony


--
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.


[web2py] Re: to be or not to be... run by scheduler

2017-10-20 Thread Anthony
If it is a scheduler execution, request.is_scheduler will be True.

Anthony

On Friday, October 20, 2017 at 9:09:40 AM UTC-4, Manuele wrote:
>
> Hi *! 
>
> Is there a way to distinguish from within a function if it's run from 
> the scheduler or not? 
>
> thanks a lot 
>
>  M. 
>
>

-- 
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.