Forum OpenACS Development: Re: About code executed in a new thread

Collapse
Posted by Luis de la Fuente on
Yes, I tried, but then the result was:

Invalid switch: "-petition_id 1"

Thank you anyway.

By now, I am using ns_thread, but I am curious about why I cannot use the scheduler...

Hi Luis!

Try this:


ad_proc -public test::test {param} {
.... (note the positional parameter)
}

set command_name "test::test"
set command_args 5 # use a list if you want more parameters

ad_schedule_proc -thread t -once t 0 $command_name $command_args

Collapse
Posted by Luis de la Fuente on
Thank you very much for the tip. It really helped!

Cheers,
Luis