IBM-Cloud / sql-query-clients

Client samples for IBM Cloud SQL Query service
Apache License 2.0
12 stars 24 forks source link

Fixes incorrect job information for queued jobs #114

Closed Max-Menne closed 3 years ago

Max-Menne commented 3 years ago

If a job has the status queued during a get_job call, it is added to self.jobs_tracking with the status queued. If you now call get_job again, no new job details are retrieved via the REST API, but only the old job details are returned. This is not a problem for completed and failed jobs, but it is for queued jobs. Therefore, it must be additionally checked that the job status is not queued.

torsstei commented 3 years ago

@Max-Menne Please also increase minor version here before merging: https://github.com/IBM-Cloud/sql-query-clients/blob/master/Python/ibmcloudsql/__init__.py#L17