> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> バックグラウンドスケジュールプール 内のタスクに関する情報を含むシステムテーブル。

# system.background_schedule_pool

<Info>
  **ClickHouse Cloud でのクエリ**

  このシステムテーブルのデータは、ClickHouse Cloud の各ノードにローカルに保持されています。したがって、すべてのデータを完全に把握するには、`clusterAllReplicas` 関数を使用する必要があります。詳細については、[こちら](/ja/reference/system-tables/overview#system-tables-in-clickhouse-cloud)を参照してください。
</Info>

<div id="description">
  ## 説明
</div>

バックグラウンドスケジュールプール内のタスクに関する情報です。バックグラウンドスケジュールプールは、分散送信、バッファのフラッシュ、メッセージブローカーの処理といった定期的なタスクの実行に使用されます。

<div id="columns">
  ## カラム
</div>

* `pool` ([String](/ja/reference/data-types)) — プール名。設定可能な値：`schedule` — 汎用スケジュールプール、`buffer_flush` — Buffer table のデータをフラッシュするためのプール、`distributed` — 分散テーブルの操作用プール、`message_broker` — メッセージブローカー操作用のプール。
* `database` ([String](/ja/reference/data-types)) — データベース名。
* `table` ([String](/ja/reference/data-types)) — テーブル名。
* `table_uuid` ([UUID](/ja/reference/data-types)) — テーブル UUID。
* `query_id` ([String](/ja/reference/data-types)) — クエリ ID (現在実行中の場合) 。注：これは実際のクエリではなく、`system.text_log` 内のログと照合するためにランダムに生成された ID です。
* `elapsed_ms` ([UInt64](/ja/reference/data-types)) — タスクの実行時間 (現在実行中の場合) 。
* `log_name` ([String](/ja/reference/data-types)) — タスクのログ名。
* `deactivated` ([UInt8](/ja/reference/data-types)) — タスクが無効化されているかどうか (無効化されたタスクはプールから削除されるため、常に false) 。
* `scheduled` ([UInt8](/ja/reference/data-types)) — タスクが実行対象としてスケジュールされているかどうか。
* `delayed` ([UInt8](/ja/reference/data-types)) — タスクが遅延付きでスケジュールされているかどうか。
* `executing` ([UInt8](/ja/reference/data-types)) — タスクが現在実行中かどうか。

<div id="example">
  ## 例
</div>

```sql title="Query" theme={null}
SELECT * FROM system.background_schedule_pool LIMIT 5 FORMAT Vertical;
```

```text title="Response" theme={null}
Row 1:
──────
pool:        distributed
database:    default
table:       data
table_uuid:  00000000-0000-0000-0000-000000000000
query_id:
elapsed_ms:  0
log_name:    BackgroundJobsAssignee:DataProcessing
deactivated: 0
scheduled:   1
delayed:     0
executing:   0
```

<div id="see-also">
  ## 関連項目
</div>

* [system.background\_schedule\_pool\_log](/ja/reference/system-tables/background_schedule_pool_log) — バックグラウンドスケジュールプール のタスク実行の履歴が含まれます。
