Skip to content

'_AsyncQuery.cancel' fails to update from returned resource #2377

@tseaver

Description

@tseaver

E.g.:

Traceback (most recent call last):
  File ...
    job.cancel()
  File ".../google/cloud/bigquery/job.py", line 378, in cancel
    self._set_properties(api_response)
  File ".../google/cloud/bigquery/job.py", line 262, in _set_properties
    self._scrub_local_properties(cleaned)
  File ".../google/cloud/bigquery/job.py", line 1050, in _scrub_local_properties
    configuration = cleaned['configuration']['query']
KeyError: 'configuration'

The docs for job.cancel show that the job resource is in a job subkey of the response.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions