Plugin jobs: a way to fail a run without retrying it
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 50/100
Direzione di ricerca
Start in the teme/contracts package, where plugin job handlers and their tries/backoff settings are declared, and find where core runs those jobs and handles a thrown exception. Add a way for a handler to throw a JobFailed::permanently(...) error that core records as failed with the reason and does not retry. Done when a test with a job of tries: 3 that fails permanently runs once, and the plugin handbook's jobs page documents the new error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A plugin's job can declare tries and backoff, but its handler can't say that one failure isn't worth retrying. Teme SEO's Search Console job, when the site isn't connected to Search Console, should fail once and say so; a network blip should still be retried. Today the only choice is tries: 1 for every failure, which is what Teme SEO 1.0.2 does.
Expected: teme/contracts gives a handler a way to fail a run for good, such as a JobFailed::permanently("reason in plain words") it throws, which core records as failed with that reason and doesn't retry, whatever tries says. Documented in the plugin handbook's jobs page; a test with a job of tries: 3 that fails permanently runs once.
🤖 Generated with Claude Code
- Lingua principale
- PHP
- Stelle
- 1
- Fork
- 1
- Merge medio
- 1h 40m
- PR unite (30g)
- 143
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di temecms/teme
-
area/admin type/enhancement when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
area/media type/enhancement when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
area/admin type/bug when/soon
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
area/import type/documentation when/soon
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
area/admin area/import type/bug when/later
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di temecms/teme
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
I maintainer di solito rispondono entro 2 giorni
-
P2 Team S Type: Infrastructure
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
google/site-kit-wp#14271 ·
I maintainer di solito rispondono entro 2 giorni
-
Display price Views field throws TypeError when the row has no productForse già presa @albanycomputers l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
backdrop-contrib/ubercart#610 ·