ad_schedule_proc (public)
ad_schedule_proc [ -thread thread ] [ -once once ] [ -debug debug ] \ [ -all_servers all_servers ] [ -schedule_proc schedule_proc ] \ interval proc [ args... ]
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Replacement for ns_schedule_proc and friends, allowing us to track what's going on. Can be monitored via /admin/monitoring/schedule-procs.tcl. The procedure defaults to run on only the canonical server unless the all_servers flag is set to true.
- Switches:
- -thread (optional, defaults to
"t"
)- t/f If true run scheduled proc in its own thread. Note that when scheduled procs executed in the main thread these procs can delay processing of other scheduled procs for a potentially long time, no other jobs will be scheduled. If scheduled procs should be running at certain times, it is highly recommended to run all scheduled procs in separate (job execution) thread and use the main scheduled thread mainly for scheduling.
- -once (optional, defaults to
"f"
)- t/f. If true only run the scheduled proc once
- -debug (optional, defaults to
"f"
)- t/f If true log debugging information
- -all_servers (optional, defaults to
"f"
)- If true run on all servers in a cluster
- -schedule_proc (optional)
- ns_schedule_daily, ns_schedule_weekly or blank
- Parameters:
- interval (required)
- If schedule_proc is empty, the interval to run the proc in seconds, otherwise a list of interval arguments to pass to ns_schedule_daily or ns_schedule_weekly
- proc (required)
- The proc to schedule
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_schedule_proc