{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Treasure Code","product_name":"Treasure Code","type":"markdown"},"seo":{"title":"tdx job - Query Job Management | Treasure Data","description":"Manage and execute Treasure Data query jobs. List jobs, view results, and manage scheduled queries.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"image":"/assets/og-image.ba836864a30434f560a4f7720f8a09019ad30ff828b20c5052ae933ba7121524.d7ef4821.png"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"job-commands","__idx":0},"children":["Job Commands"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Manage and execute Treasure AI jobs (queries)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"commands","__idx":1},"children":["Commands"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"tdx jobs                              # List jobs\ntdx job list                          # Same as jobs\ntdx job schedule list                 # List scheduled queries\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"list-jobs","__idx":2},"children":["List Jobs"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List jobs (default: 40 jobs)\ntdx jobs\n\n# List more jobs\ntdx jobs --limit 100\n\n# Filter by status\ntdx jobs --status running\ntdx jobs --status success\ntdx jobs --status error\ntdx jobs --status queued\n\n# Combine filters\ntdx jobs --status running --limit 50\n\n# Output as JSON\ntdx jobs --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"show-job-details","__idx":3},"children":["Show Job Details"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Show job details\ntdx job show <job-id>\n\n# Show as JSON\ntdx job show <job-id> --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"submit-jobs","__idx":4},"children":["Submit Jobs"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Submit Trino query (default)\ntdx job submit \"SELECT * FROM mydb.table LIMIT 10\"\n\n# Submit with specific database\ntdx job submit \"SELECT * FROM table\" --database mydb\n\n# Submit Hive query from file\ntdx job submit --job-type hive -f query.sql --database mydb\n\n# Submit without specifying database\ntdx job submit \"SELECT 1\"\n\n# Submit with result export destination (URL format)\ntdx job submit \"SELECT * FROM table\" --database mydb --result \"s3://bucket/path\"\n\n# Submit with result export destination (JSON format)\ntdx job submit \"SELECT * FROM table\" --database mydb \\\n  --result '{\"type\":\"s3_v2\",\"td_authentication_id\":12345,\"bucket\":\"my-bucket\",\"path\":\"/output/result.csv\",\"format\":\"csv\"}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"get-job-results","__idx":5},"children":["Get Job Results"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Get job results (table format)\ntdx job result <job-id>\n\n# Get results as JSON\ntdx job result <job-id> --json\n\n# Save results to file\ntdx job result <job-id> --output results.json\n\n# Get results as TSV\ntdx job result <job-id> --tsv\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"kill-a-job","__idx":6},"children":["Kill a Job"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Kill a job (with confirmation)\ntdx job kill <job-id>\n\n# Skip confirmation prompt\ntdx job kill <job-id> --yes\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"job-command-options","__idx":7},"children":["Job Command Options"]},{"$$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":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--job-type <type>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Job type (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["trino"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hive"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["trino"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-f, --file <path>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read query from file"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--database <name>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Database name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["information_schema"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result <target>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Result export destination (URL or JSON)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--status <status>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter by status (for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["jobs"]}," list)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--limit <number>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum jobs to list"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"status-values","__idx":8},"children":["Status Values"]},{"$$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":"Status"},"children":["Status"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["queued"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Job is waiting to run"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Job is currently executing"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Job completed successfully"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Job failed with an error"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"scheduled-queries","__idx":9},"children":["Scheduled Queries"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Manage scheduled queries (cron-based job execution)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"list-schedules","__idx":10},"children":["List Schedules"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List all scheduled queries\ntdx job schedule list\n\n# Filter by wildcard pattern\ntdx job schedule list \"daily*\"        # Starts with \"daily\"\ntdx job schedule list \"*_sync\"        # Ends with \"_sync\"\ntdx job schedule list \"*hourly*\"      # Contains \"hourly\"\ntdx job schedule list \"report_?\"      # Single character wildcard\n\n# Limit results\ntdx job schedule list --limit 100\n\n# Output as JSON\ntdx job schedule list --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The default output shows a compact list with status icon, last run time, next run time, cron expression, and schedule name (with link to Treasure AI Console)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"pattern-syntax","__idx":11},"children":["Pattern Syntax"]},{"$$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":"Pattern"},"children":["Pattern"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Matches"},"children":["Matches"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Any characters (zero or more)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["?"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Any single character"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pattern matching is case-insensitive."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"show-schedule-details","__idx":12},"children":["Show Schedule Details"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Show schedule details\ntdx job schedule show <name>\n\n# Show as JSON\ntdx job schedule show <name> --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-a-schedule","__idx":13},"children":["Create a Schedule"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Create a scheduled query (minimal)\ntdx job schedule create my-schedule \\\n  -d mydb \\\n  --file query.sql\n\n# Create with cron expression\ntdx job schedule create my-schedule \\\n  -d mydb \\\n  --file query.sql \\\n  --cron \"0 0 * * *\" \\\n  --timezone \"America/Los_Angeles\"\n\n# Create with all options\ntdx job schedule create my-schedule \\\n  -d mydb \\\n  --file query.sql \\\n  --type trino \\\n  --cron \"0 0 * * *\" \\\n  --timezone \"America/Los_Angeles\" \\\n  --delay 60 \\\n  --priority 1 \\\n  --retry-limit 3 \\\n  --engine-version stable \\\n  --result \"td://mydb/result_table\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"update-a-schedule","__idx":14},"children":["Update a Schedule"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Update cron expression\ntdx job schedule update my-schedule --cron \"0 12 * * *\"\n\n# Update query from file\ntdx job schedule update my-schedule --file new-query.sql\n\n# Update multiple options\ntdx job schedule update my-schedule \\\n  -d newdb \\\n  --priority 2 \\\n  --retry-limit 5\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"delete-a-schedule","__idx":15},"children":["Delete a Schedule"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Delete a schedule (with confirmation)\ntdx job schedule delete my-schedule\n\n# Skip confirmation prompt\ntdx job schedule delete my-schedule --yes\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"run-a-schedule-immediately","__idx":16},"children":["Run a Schedule Immediately"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Run immediately with current time\ntdx job schedule run my-schedule\n\n# Run with specific scheduled time\ntdx job schedule run my-schedule --time \"2025-01-15T00:00:00Z\"\n\n# Run multiple times (1-10)\ntdx job schedule run my-schedule --num 3\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"show-schedule-history","__idx":17},"children":["Show Schedule History"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Show execution history (default: last 20)\ntdx job schedule history my-schedule\n\n# Show with pagination\ntdx job schedule history my-schedule --from 0 --to 50\n\n# Output as JSON\ntdx job schedule history my-schedule --json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"schedule-command-options","__idx":18},"children":["Schedule Command Options"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"create-options","__idx":19},"children":["Create Options"]},{"$$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":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-d, --database <name>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Database name (required, global option)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-f, --file <path>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read query from file (required)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--type <type>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Query type (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["trino"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hive"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["trino"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--cron <expression>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cron expression for scheduling"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--timezone <tz>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Timezone for cron"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["UTC"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--delay <seconds>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Delay in seconds before execution"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--priority <-2~2>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Job priority (-2 to 2)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--retry-limit <0~32>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retry limit (0 to 32)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--engine-version <version>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Query engine version"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--result <url>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Result output destination URL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"update-options","__idx":20},"children":["Update Options"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All create options are available (all are optional for update)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"run-options","__idx":21},"children":["Run Options"]},{"$$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":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--time <iso8601>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Scheduled time (ISO 8601 format)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["now"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--num <1-10>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Number of executions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"list-options","__idx":22},"children":["List Options"]},{"$$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":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[pattern]"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Wildcard pattern to filter names (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["*"]}," any chars, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["?"]}," single char)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["-"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--limit <number>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maximum schedules to return"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["40"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"history-options","__idx":23},"children":["History Options"]},{"$$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":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default"},"children":["Default"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--from <n>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Starting offset"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--to <n>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ending offset"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["20"]}]}]}]}]}]},"headings":[{"value":"Job Commands","id":"job-commands","depth":1},{"value":"Commands","id":"commands","depth":2},{"value":"List Jobs","id":"list-jobs","depth":2},{"value":"Show Job Details","id":"show-job-details","depth":2},{"value":"Submit Jobs","id":"submit-jobs","depth":2},{"value":"Get Job Results","id":"get-job-results","depth":2},{"value":"Kill a Job","id":"kill-a-job","depth":2},{"value":"Job Command Options","id":"job-command-options","depth":2},{"value":"Status Values","id":"status-values","depth":2},{"value":"Scheduled Queries","id":"scheduled-queries","depth":2},{"value":"List Schedules","id":"list-schedules","depth":3},{"value":"Pattern Syntax","id":"pattern-syntax","depth":4},{"value":"Show Schedule Details","id":"show-schedule-details","depth":3},{"value":"Create a Schedule","id":"create-a-schedule","depth":3},{"value":"Update a Schedule","id":"update-a-schedule","depth":3},{"value":"Delete a Schedule","id":"delete-a-schedule","depth":3},{"value":"Run a Schedule Immediately","id":"run-a-schedule-immediately","depth":3},{"value":"Show Schedule History","id":"show-schedule-history","depth":3},{"value":"Schedule Command Options","id":"schedule-command-options","depth":3},{"value":"Create Options","id":"create-options","depth":4},{"value":"Update Options","id":"update-options","depth":4},{"value":"Run Options","id":"run-options","depth":4},{"value":"List Options","id":"list-options","depth":4},{"value":"History Options","id":"history-options","depth":4}],"frontmatter":{"seo":{"title":"tdx job - Query Job Management | Treasure Data","description":"Manage and execute Treasure Data query jobs. List jobs, view results, and manage scheduled queries.","image":"/assets/og-image.ba836864a30434f560a4f7720f8a09019ad30ff828b20c5052ae933ba7121524.d7ef4821.png"}},"lastModified":"2026-05-18T01:25:54.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/treasure-code/commands/job","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}