ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend

Classification : Implement cron job to update status of jobs/batch

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

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

enhancement
主要言語
Python
スター
18
フォーク
10
平均マージ
2日 20時間
マージ済み PR(30日)
14

説明

Problem

Both the Fine-Tuning API and the Batch API in OpenAI run asynchronously. Once a request is created, the job continues processing on OpenAI’s side, and the status only updates when the job progresses (e.g., queued → running → succeeded/failed).

Currently, to know whether a fine-tuning job or batch job has completed, the user must manually call the Retrieve API for each object. This manual polling is tedious, inefficient, and not scalable.

Proposed Solution

  • Set up a cron job (or background worker) that:

  • Periodically calls the Retrieve API for both fine-tuning and batch jobs.

  • Updates the database with the latest job status and results.

  • Ensures that when users query the database, they receive up-to-date information without needing to manually poll OpenAI endpoints.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

issue に記載された Fine-Tuning API と Batch API Retrieve API のエントリーポイントから始め、続いて job のステータスと結果がデータベースにどのように保存されるかを追跡します。両方の job タイプについて、ステータスの更新と取得した結果を含む、定期 worker の動作を定義します。データベースクエリによって、手動のポーリングなしに最新情報が取得できれば完了です。

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

評価

技術スタック
python
領域
api, backend, database
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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