Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

commit is forbidden in queue jobs

Aperta
#889 22 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The issue names no source files, only the pattern env.cr.commit() in delayed job functions and a reference to OCA/queue pull request 880, which is not linked here. Start by reading that pull request and the 22-comment thread to see what has been decided about commits in jobs. The issue asks for feedback rather than a change, so there is no clear definition of done yet; check with maintainers before writing code.

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

Descrizione

It is forbidden to call env.cr.commit() in delayed job functions.

It has always been bad practice, but now a commit releases the job lock and can cause it to be started again (while still running) by the dead jobs requeuer.

https://github.com/OCA/queue/pull/880 makes such commits an error to make that explicit.

I open this issue to collect feedback on this, as there might be (semi-)legitimate uses of commit.

Lingua principale
Python
Stelle
271
Fork
602
Merge medio
4g 4h
PR unite (30g)
6

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 OCA/queue

Tutte le issue di OCA/queue

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.