Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt-cloud job create --settings-threads is not working #17

Closed
stumelius opened this issue Dec 27, 2021 · 0 comments · Fixed by #18
Closed

dbt-cloud job create --settings-threads is not working #17

stumelius opened this issue Dec 27, 2021 · 0 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@stumelius
Copy link
Contributor

Passing --settings-threads 4 to dbt-cloud job create results in a job with 1 thread (default). Nested pydantic args are not properly translated from click options and therefore the thread value does not get passed to the pydantic model. This affects all nested arguments in dbt-cloud job create.

>> dbt-cloud job create --project-id 26597 --environment-id 49819 --name "Test nested args" --settings-threads 4 --execute-steps "dbt seed"
{
  "status": {
    "code": 201,
    "is_success": true,
    "user_message": "Success!",
    "developer_message": ""
  },
  "data": {
    "execution": {
      "timeout_seconds": 0
    },
    "generate_docs": false,
    "run_generate_sources": false,
    "id": 48534,
    "account_id": REDACTED,
    "project_id": 26597,
    "environment_id": 49819,
    "name": "Test nested args",
    "dbt_version": null,
    "created_at": "2021-12-27T08:15:22.470119+00:00",
    "updated_at": "2021-12-27T08:15:22.470140+00:00",
    "execute_steps": [
      "dbt seed"
    ],
    "state": 1,
    "deferring_job_definition_id": null,
    "lifecycle_webhooks": false,
    "lifecycle_webhooks_url": null,
    "triggers": {
      "github_webhook": false,
      "git_provider_webhook": null,
      "custom_branch_only": false,
      "schedule": false
    },
    "settings": {
      "threads": 1,
      "target_name": "default"
    },
    "schedule": {
      "cron": "0 * * * *",
      "date": {
        "type": "every_day"
      },
      "time": {
        "type": "every_hour",
        "interval": 1
      }
    },
    "is_deferrable": false,
    "generate_sources": false,
    "cron_humanized": "Every hour",
    "next_run": null,
    "next_run_humanized": null
  }
}
@stumelius stumelius added the bug Something isn't working label Dec 27, 2021
@stumelius stumelius linked a pull request Dec 27, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant