Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[#81] : https://github.com/SAP/data-attribute-recommendation-python-sdk/pull/81

* Log job progress in ModelManagerClient.wait_for_job [#87]

[#87] : https://github.com/SAP/data-attribute-recommendation-python-sdk/pull/87

## [0.7.0]

### Added
Expand Down
9 changes: 8 additions & 1 deletion sap/aibus/dar/client/model_manager_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ def wait_for_job(self, job_id: str) -> dict:

def polling_function():
self.log.info("Polling for status of job '%s'", job_id)
return self.read_job_by_id(job_id)
job_resource = self.read_job_by_id(job_id)
self.log.info(
"Job '%s': status '%s', progress: '%s'",
job_id,
job_resource["status"],
job_resource["progress"],
)
return job_resource

self.log.info("Waiting for job '%s' to finish.", job_id)

Expand Down