Solved.
I have tried to use request.env.server_name in db.py

2013/1/13 Martin Weissenboeck <[email protected]>

> Now I have tried to reduce this problem:
>
> There is only one function in "myscheduler":
>
> myscheduler = Scheduler (db, dict(
>     testmail=testmail,
>     ))
>
> And testmail is:
>
> def testmail(text='mytext'):
>     res = send_email(
>                 to='[email protected]',
>                 subject="subject: %s" % text,
>                 message="message: %s" % text,
>                )
>
> But the error message remains:
>
>
> Traceback (most recent call last):
>   File "/home/www-data/web2py/gluon/scheduler.py", line 214, in executor
>     _env = env(a=a, c=c, import_models=True)
>   File "/home/www-data/web2py/gluon/shell.py", line 137, in env
>     sys.exit(1)
> SystemExit: 1
>
>
>
>
> 2013/1/13 Martin Weissenboeck <[email protected]>
>
>> Repeats: 0=unlimitedRetry Failed: -1=unlimitedPeriod: secondsTimeout:
>> secondsSync Output: update output every n sec: 0=never Times Run:
>> Times Failed:
>> Tiemout:300 seconds.
>> The called functions needs about 2 seconds to complete.
>>
>>
>> 2013/1/13 Niphlod <[email protected]>
>>
>>> did you try to raise the timeout ?
>>>
>>>
>>> On Sunday, January 13, 2013 2:43:12 PM UTC+1, mweissen wrote:
>>>>
>>>> The scheduler calls two diffent functions.
>>>> In bothes the scheduler_run table contains:
>>>>
>>>> Traceback (most recent call last):
>>>>   File "/home/www-data/web2py/gluon/**scheduler.py", line 214, in
>>>> executor
>>>>     _env = env(a=a, c=c, import_models=True)
>>>>   File "/home/www-data/web2py/gluon/**shell.py", line 137, in env
>>>>     sys.exit(1)
>>>> SystemExit: 1
>>>>
>>>> Any hints?
>>>> Reagards, Martin
>>>>
>>>
>>>

-- 



Reply via email to