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

[Bug][Blueprint] Scheduled run fails silently when plan generation errors

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, go
領域
backend

調査の方向性

Start at BlueprintJob.Run in backend/server/services/blueprint.go and follow the call to createPipelineByBlueprint, where the MakePlanForBlueprint error returns before any pipeline record is created. The maintainers have not chosen how the failure should surface, so confirm the approach in the thread before coding. Done means a scheduled run that fails at plan time leaves a visible failed record, and a test covers the cron path.

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

説明

Search before asking
  • I had searched in the issues and found no similar issues.
What happened

When a scheduled (cron) blueprint run fails during plan generation, the failure is only logged. BlueprintJob.Run in backend/server/services/blueprint.go calls createPipelineByBlueprint, which returns the MakePlanForBlueprint error before any pipeline is created. No pipeline record exists, so nothing shows as a failed run in the UI, and alerting on pipeline status can't catch it. The only trace is the lake log:

[blueprint] run cron job failed on blueprint:[1][my-blueprint]
caused by: ...

This is plugin-agnostic: any error raised while making the plan (e.g. a data source rejecting credentials) is handled this way. Example cause: #9220.

What do you expect to happen

A scheduled run that fails at plan time is visible the same way a failed pipeline is: in the UI and to anything monitoring pipeline status. Recording it as a failed pipeline is one option; maintainers may prefer another.

How to reproduce
  1. Create a GitHub App connection and a blueprint using it, with a cron schedule.
  2. Set the DevLake host clock about 2s ahead of real time (see #9220).
  3. Wait for the scheduled run.
  4. No new pipeline appears; the error is only in the lake log.
Anything else

Manually triggering the same blueprint (POST /blueprints/:id/trigger) returns the error to the caller, so only scheduled runs are affected.

Version

v1.0.3-beta14 (same code on main)

Are you willing to submit PR?
  • Yes I am willing to submit a PR!
Code of Conduct
主要言語
Go
スター
3.2k
フォーク
824
平均マージ
2日 22時間
マージ済み PR(30日)
43

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

apache/devlake のほかの issue

apache/devlake の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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