{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"オンデマンドジャーニー実行","description":"ペアレントセグメントの更新完了を待たずに、最新のセグメントデータを使用してバッチジャーニーを即時トリガーします。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"オンデマンドジャーニー実行","__idx":0},"children":["オンデマンドジャーニー実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オンデマンドジャーニー実行を使用すると、ペアレントセグメントの更新完了を待たずに、最後に完了したセグメントデータを使用してバッチジャーニーを即時トリガーできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、バッチジャーニーは関連するペアレントセグメントの更新が完了した後にのみ実行されます。これはスケジュールされた日次キャンペーンには適していますが、セグメントルールを更新した直後や時間的に重要なキャンペーンを開始する場合など、すぐに対応が必要な際には遅延が生じます。オンデマンド実行はこの依存関係を解消します。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オンデマンド実行は現在、APIおよび",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx"]}," CLIから利用できます。Treasure AI Studioユーザーは自然言語を使用してジャーニーをトリガーできます — 下記の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI Studioを使用する"]},"セクションを参照してください。Treasure AI UIの",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["今すぐ実行"]},"ボタンは将来のリリースで提供予定です。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"使用するタイミング","__idx":1},"children":["使用するタイミング"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["セグメントルールを更新し、ジャーニーを即時実行したい場合"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データ更新スケジュールとは独立して、特定の時刻にジャーニーを実行したい場合"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["プログラムでジャーニーをトリガーする自動化パイプラインを構築している場合"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"開始前の確認事項","__idx":2},"children":["開始前の確認事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["オンデマンド実行をトリガーする前に、以下の条件を確認してください。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"条件"},"children":["条件"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"満たされていない場合の対処"},"children":["満たされていない場合の対処"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーがアクティブ（一時停止中またはドラフトでない）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AI UIからジャーニーをアクティブ化する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーが少なくとも1回更新されている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最初にフルデータ更新を実行する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データ更新が現在実行中でない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["更新の完了を待ってからリトライする"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーが既に実行中でない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["現在の実行が完了するまで待つ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーがプライオリティグループに属していない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["プライオリティグループジャーニーは非対応 — 下記の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["制限事項"]},"セクションを参照"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"実行のトリガー方法","__idx":3},"children":["実行のトリガー方法"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-ai-studioを使用する","__idx":4},"children":["Treasure AI Studioを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure AI Studioは自然言語を使用してジャーニーをトリガーできます。ジャーニーIDを指定するか、ジャーニーのコンソールURLを貼り付けてください — StudioがIDを解決し、バックグラウンドで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey run"]},"を実行します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プロンプト例："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ジャーニー123を実行してください。\n"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"このジャーニーをトリガーしてください: https://console.treasuredata.com/app/workflows/journeys/123\n"},"children":[]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ブラックフライデーキャンペーンジャーニー（ID 456）を今すぐ実行してください。\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Studioはジャーニーの開始を確認し、進捗の監視に使用できるセッションIDを返します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tdx-cliを使用する","__idx":5},"children":["TDX CLIを使用する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"tdx journey run <journey_id>\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"tdx journey run 123\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コマンドはジャーニーの開始を確認し、セッションIDを返します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Journey execution started.\n\nJourney ID:          123\nWorkflow Session ID: 200\nStatus:              running\n\nMonitor progress:\n  tdx wf sessions 200\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コマンドは即時終了します — ジャーニーの完了を待機しません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"apiを使用する","__idx":6},"children":["APIを使用する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST /entities/journeys/{journeyId}/run\n"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["お使いのリージョンのAPIベースURLを使用してください。完全なリストは",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/endpoints"},"children":["Treasure APIエンドポイントとベースURL"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リクエストヘッダーにAPIキーを含めてください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"curl -X POST \\\n  https://api-cdp.treasuredata.com/entities/journeys/123/run \\\n  -H \"Authorization: TD1 <your_api_key>\" \\\n  -H \"Content-Type: application/json\"\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["レスポンス例："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": {\n    \"id\": \"100\",\n    \"type\": \"execution-journey\",\n    \"attributes\": {\n      \"journeyId\": \"123\",\n      \"workflowSessionId\": \"200\",\n      \"createdAt\": \"2026-05-07T00:00:00+00:00\",\n      \"status\": \"running\"\n    }\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflowSessionId"]},"を保存して、Treasure AI Workflowコンソールで実行を監視してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"実行時の注意事項","__idx":7},"children":["実行時の注意事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["オーディエンスデータは最新ですが、リアルタイムではありません。"]}," ジャーニーは最後に完了したペアレントセグメント更新のデータを使用します。更新が毎晩実行される場合、正午のオンデマンド実行では前夜のデータが使用されます。最後の更新後に到着した変更（新しいオプトアウト、更新されたプロファイルなど）は、次の更新が完了するまで反映されません。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["セグメントルールの変更は即時反映されます。"]}," セグメントルールを編集した場合、その変更はオンデマンド実行を含む次の実行に適用されます。フルデータ再構築を待つ必要はありません。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["例外："]}," 新しいデータソースの追加や属性・ビヘイビア定義の変更など、ペアレントセグメントの設定に構造的な変更を加えた場合は、その変更がジャーニー実行に反映される前にフル更新が必要です。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ダウンストリームのアクティベーションは通常通り実行されます。"]}," ジャーニー完了後に実行するよう設定されたアクション（メール、エクスポート、CRM更新など）は、スケジュールされた実行と同様に実行されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1つのバージョンをトリガーするとすべてのバージョンが実行されます。"]}," ジャーニーに複数のバージョンがある場合、最新バージョンをトリガーすると、完了後に古いバージョンが順番に自動実行されます — スケジュールされた実行と同じ動作です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エラーリファレンス","__idx":8},"children":["エラーリファレンス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["実行が開始されない場合、APIは理由コードとともにエラーを返します。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"エラー"},"children":["エラー"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"意味"},"children":["意味"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"対処方法"},"children":["対処方法"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARENT_SEGMENT_RUNNING"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データ更新が現在進行中"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["更新の完了を待ってから再試行"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["JOURNEY_WORKFLOW_RUNNING"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーが既に実行中"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["現在の実行が完了するまで待つ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["JOURNEY_NOT_ACTIVE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーが一時停止中またはドラフト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AI UIでジャーニーをアクティブ化する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PRIORITY_GROUP_JOURNEY_NOT_ELIGIBLE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーがプライオリティグループを使用"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非対応 — 下記の",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["制限事項"]},"セクションを参照"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NOT_LATEST_VERSION"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["使用したジャーニーIDが古いバージョン"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最新バージョンのジャーニーIDを使用する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PARENT_SEGMENT_NEVER_REFRESHED"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["オーディエンスデータが一度も構築されていない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最初にフルデータ更新を実行する"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オンデマンド実行の自動化","__idx":9},"children":["オンデマンド実行の自動化"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Workflowの",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http>"]},"オペレーターを使用して、ワークフローからオンデマンドジャーニー実行をトリガーできます。外部スクリプトやcronジョブを使用せずに、Treasure AI内でジャーニーの実行をスケジュールしたり、他のタスクと連携させることができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["例: ワークフローからジャーニーをオンデマンドでトリガーする"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\nschedule:\n  daily>: \"06:00:00\"\n\n+run_journey:\n  http>: https://api-cdp.treasuredata.com/entities/journeys/123/run\n  method: POST\n  content_type: application/json\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIキーをワークフローシークレットとして保存し、ハードコーディングを避けてください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sh","header":{"controls":{"copy":{}}},"source":"tdx wf secrets --set http.authorization=\"TD1 your_api_key_here\" --project your_project_name\n","lang":"sh"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http.authorization"]},"シークレットは、プロジェクト内のすべての",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http>"]},"リクエストに",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]},"ヘッダーとして自動的に含まれます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["競合のハンドリング:"]}," ワークフロー実行時にジャーニーまたはParent Segmentが既に実行中の場合、APIは",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["409"]},"エラーを返し、ワークフローの試行が失敗します。一時的な競合に対応するためにリトライポリシーを追加してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+run_journey:\n  http>: https://api-cdp.treasuredata.com/entities/journeys/123/run\n  method: POST\n  content_type: application/json\n  _retry: 3\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定オプションの詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows"},"children":["Treasure Workflowドキュメント"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限事項","__idx":10},"children":["制限事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["プライオリティグループジャーニーは非対応。"]}," プライオリティグループはデータ更新中に複数のジャーニー間で調整が必要です — これは単一のオンデマンド実行では再現できません。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["構造的なデータ変更はフル再構築が必要。"]}," 新しいデータソースを追加したり、ペアレントセグメントの構造を変更した場合は、オンデマンド実行をトリガーする前にフル更新を実行してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UIボタンは未対応。"]}," 今すぐ実行ボタンは将来のリリースで提供予定です。現時点ではTreasure AI Studio、CLI、またはAPIをご使用ください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"関連ページ","__idx":11},"children":["関連ページ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/journey-workflow-dependencies"},"children":["ジャーニーワークフロー依存関係"]}," — ペアレントセグメント、ジャーニー、アクティベーションワークフローのデフォルトの相互作用について"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey"},"children":["バッチジャーニーの作成"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/pausing-and-resuming-a-journey"},"children":["ジャーニーの一時停止と再開"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/endpoints"},"children":["Treasure APIエンドポイントとベースURL"]}]}]}]},"headings":[{"value":"オンデマンドジャーニー実行","id":"オンデマンドジャーニー実行","depth":1},{"value":"使用するタイミング","id":"使用するタイミング","depth":2},{"value":"開始前の確認事項","id":"開始前の確認事項","depth":2},{"value":"実行のトリガー方法","id":"実行のトリガー方法","depth":2},{"value":"Treasure AI Studioを使用する","id":"treasure-ai-studioを使用する","depth":3},{"value":"TDX CLIを使用する","id":"tdx-cliを使用する","depth":3},{"value":"APIを使用する","id":"apiを使用する","depth":3},{"value":"実行時の注意事項","id":"実行時の注意事項","depth":2},{"value":"エラーリファレンス","id":"エラーリファレンス","depth":2},{"value":"オンデマンド実行の自動化","id":"オンデマンド実行の自動化","depth":2},{"value":"制限事項","id":"制限事項","depth":2},{"value":"関連ページ","id":"関連ページ","depth":2}],"frontmatter":{"seo":{"title":"オンデマンドジャーニー実行","description":"ペアレントセグメントの更新完了を待たずに、最新のセグメントデータを使用してバッチジャーニーを即時トリガーします。"}},"lastModified":"2026-06-23T23:54:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/journey-orchestration/batch/on-demand-journey-execution","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}