Forum OpenACS Development: Re: Scheduling/Unscheduling procedure

Collapse
Posted by Don Baccus on
If you can improve ad_schedule_proc and add an ad_unshedule_proc that would be great, just open a bug/feature in the bugtracker and submit a patch when you've finished ... reference this thread in your description of it ...
Collapse
Posted by Denis Khitrov on
OK! I will try to do it during next week.
Collapse
Posted by Jeff Davis on
It's easy enough to get the id back out, if you look at [ns_info scheduled]...
foreach item [ns_info scheduled] {
    # match on [lindex $item 8] break if found.
}
Collapse
Posted by Denis Khitrov on
Thanks Jeff!
I was looking for an option to get a list of all scheduled procedures, but have not fund it in AOL API. And I was  wondering why it's not there . But as I understand from your code "ns_info scheduled" is what I was looking for.
Collapse
Posted by Denis Khitrov on
Hi Jeff!

I've just unsaccessfuly spent more then a hour, trying to find any documentation for "ns_info scheduled". Where did you read about that feature?

It really works and returns a list of scheduled proc infos, but there is no any mention of "scheduled" option of "ns_info" in AOL docs (at least I've not found it). Can you please give me an advice where can I read about it.

Thanks

Collapse
Posted by Jeff Davis on
I got it out of a telemetry page I have been using for a while.
look at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/aolserver/nstelemetry/nstelemetry.adp
for the source.  I think you have to read the ns_info command
source to know all the secret little things it does.
Collapse
Posted by Denis Khitrov on
Thanks.
Telemetry script was only a thing where I found a track of "ns_info scheduled".

Thinking about this AOL Server option I got another question. If it's possible to use native AOLServer function to monitor scheduled procedures, do OpenACS really needs wrappers like ad_schedule_proc/ad_unschedule_proc?