Scheduled Jobs reads every app's config file to find its jobs

Aperta
#2,064 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
46/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

The issue identifies the Scheduled Jobs page and its per-app get_component_file reads, but gives no file or test paths. Start by tracing the page's job loading flow and checking how Studio calls Harper operations and handles older Harper versions. Done means Studio uses a single operation for registered jobs when available, falls back to config files on older Harper, and reflects the registered state.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

The Scheduled Jobs page (studio#2015) finds each app's jobs by reading its config file, one get_component_file per app that has one. Harper has no operation that lists scheduled jobs, so the config files are the only source. On an instance with many apps that is many small reads per page load, most of them for apps with no jobs.

It also means the page shows what each file declares, not what Harper actually loaded: an edit waiting for a restart reads as current.

What would fix it

A Harper operation that returns the registered jobs per app (name, schedule, handler, and ideally run state). Studio would read that once, and fall back to the config files on older Harper. Until then the per-app reads stay: they are the only way to know which apps have jobs.

Review-Deferral: 7c3875dbdc24a41d severity=nit category=performance

Lingua principale
TypeScript
Stelle
5
Fork
4
Merge medio
1g 19h
PR unite (30g)
144

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/studio

Tutte le issue di HarperFast/studio

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.