The scheduler wants args and vars in json because they must be stored
in db.

On Oct 25, 3:42 am, szimszon <szims...@gmail.com> wrote:
> If I make a scheduler task from web2py I have to do something like:
>
>     import uuid
>     uuid_str = str( uuid.uuid4() )
>     *import simplejson*
>     db.scheduler_task.insert(
>       task_name = '%s' % ( auth.user.username ),
>       function_name = 'sort_out_files',
>       timeout = 120,
>       *args = simplejson.dumps(* [uuid_str] *)*,
>     )
>
> Is it right? Why I can't do just:
>     ...
>     args = [uuid_str]
>     ...
> ?

Reply via email to