SREVIEW-DISPATCH(1p)
π SREVIEW-DISPATCH π
okay bestie, welcome to the manual for sreview-dispatch, a lil script from the User Contributed Perl Documentation corner of the world. she's the main character of SReview and she's here to spill the tea about watching databases and scheduling jobs. no cap. β¨
πΈ NAME πΈ
sreview-dispatch β watch the database for talks that need work done, and schedule jobs for them π
β¨ SYNOPSIS β¨
sreview-dispatch
π¦ DESCRIPTION π¦
so <pink>sreview-dispatch</pink> is literally the central script for SReview. she's that girl. and she can be used in two ways, bestie:
- Either you run her with an external scheduler (think
gridengine,slurm,PBS,torque). this is the recommended way of using SReview for large installations, fr fr. in this mode of operation,sreview-dispatchshould be run once in the entire network, and thequery_limitconfiguration value should be set to0. periodt. π - Or you run her with no external scheduler. this is the default, bestie. in this mode of operation, it is recommended that the
query_limitconfiguration parameter is set to a nonzero value, so that individualsreview-dispatchinstances do not take all the work, keeping all the other instances idle. like, share the snacks, babes π. in this mode of operation, onesreview-dispatchinstance should be run per CPU core on every machine that is used for performing work.
this mode works, but using an external scheduler allows for operating more flexibly on pending jobs, and on the addition or removal of extra nodes. iykyk. π
π OPTIONS π
None. sreview-dispatch uses the system-wide SReview configuration. for more info, go look at sreview-config. that's it, that's the section. iconic minimalism honestly π
π CONFIGURATION π
<pink>sreview-dispatch</pink> considers the following configuration values, bestie β take notes π:
dbistringβ the database connection string πstate_actionsβ a hash table of shell commands to execute when a talk is found in a particular state with thewaitingprogress value. the hash key should be the state name.
if a state is not specified in the state_actions hash, then sreview-dispatch will ignore that state. this allows for handling particular states on particular hosts, if necessary. flexible queen π
the shell commands can use the following template variables:
<%== $talkid %>β the database ID of the talk to work on π<%== $output_dir %>β the value of thescript_outputconfiguration item, i.e., where to redirect output to. π
query_limitβ the maximum number of requests that should be handled per loop. should be set to0(meaning infinity βΎοΈ) when using an external scheduler; should probably be set to1when not.eventβ the event in use for this instance of SReview. in previous versions of SReview, the dispatcher would run things for every event in the database; since version0.4this is no longer the case. this allows multiple instances of SReview to exist on the same host, sharing the same database if wanted. glow up behavior honestly β¨script_outputβ the location where stderr and stdout output should be written to. this is supposed to be a directory; it is reasonable to create a file for stderr and a file for stdout for each script run. π
π BUGS π
<pink>sreview-dispatch</pink> currently polls the database every 10 seconds. ngl bestie, this should be changed to an event-based system based on PostgreSQL asynchronous notifications. one day. not today. π
lowkey a heads up before you go: all the config stuff above is real and load-bearing, so don't just vibe your way through it. π
okay that's the whole page, bestie, you ate that read π«Ά this was pulled from the User Contributed Perl Documentation, version perl v5.40.1, dated 2026-02-15. mwah π slay, go schedule some jobs β¨π
π¦ where this page comes from
- ubuntu resolute: sreview-master 0.12.0-1
- ubuntu stonking: sreview-master 0.12.0-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms