Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

commit is forbidden in queue jobs

オープン
#889 コメント 22 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
18/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
271
フォーク
602
平均マージ
4日 4時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OCA/queue のほかの issue

OCA/queue の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。