Connection/Cursor already closed

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

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

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

評価

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

調査の方向性

Start by tracing how SQLMesh runs Python model pre-statements and manages the DuckDB connection and cursor during long-running data pulls. The issue reports a "Connection/Cursor already closed" error after about 30 minutes, but does not name a file, test, or specific failing operation. Reproduce with a pull that runs beyond that point, then confirm the connection remains usable and the error no longer occurs.

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

説明

Hi!

We have python-based models which pull data in pre-statements via duckdb; it seems like if it takes > 30m, it started to throw this error.

image

Is there anyway we can avoid this because as dataset growing; time to pull is increasing.

Thanks

主要言語
Python
スター
3.3k
フォーク
471
平均マージ
6日 7時間
マージ済み PR(30日)
35

環境構築

Codespaces で開く

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

はじめの一歩

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

SQLMesh/sqlmesh のほかの issue

SQLMesh/sqlmesh の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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