rich_interact::Viewport · the example pager

0.0 s

Screenshots

                                   orbit                                    
                                                                            
A tiny service, here so the documentation's recordings have something to    
page through, pick from and search. Nothing in it runs.                     
                                                                            
What it does                                                                
                                                                            
orbit watches a queue, hands each job to a worker and reports progress in   
the terminal. Workers are plain functions; the scheduler decides how many   
run at once, retries a job that fails, and gives up after three tries.      
                                                                            
Configuration                                                               
                                                                            
                                                                            
 Setting  Default  Meaning                                                  
 ───────────────────────────────────────────────                            
 workers  4        Jobs that run at once                                    
lines 1–17 of 52 · ↑↓ PgUp PgDn · q quits                                   
top
 retries  3        Tries before a job fails                                 
 port     8080     Where the status page listens                            
                                                                            
                                                                            
Running it                                                                  
                                                                            
                                                                            
 orbit --workers 8 queue.toml                                               
                                                                            
                                                                            
The status page shows each worker, its job and how long it has run. A worker
that has run a job for more than a minute is marked slow; a job that failed 
three times is listed with its last error.                                  
                                                                            
Components                                                                  
                                                                            
The terminal side is built from rs-rich-interact components: a picker for   
lines 18–34 of 52 · ↑↓ PgUp PgDn · q quits                                  
paged
❯ viewport README.md                                                        
left at line 36                                                             
❯                                                                           
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
returned