Skip to content

Commit 4fdfb20

Browse files
authored
Merge pull request #44 from DataCrunch-io/fix/remove-print
fix: removed print and minor changes
2 parents 08dc65a + 243f272 commit 4fdfb20

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.github/workflows/publish_package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Upload Python Package
55

66
on:
77
release:
8-
types: [published, created]
8+
types: [published]
99

1010
jobs:
1111
deploy:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Trigger publish package github action only when a released is published
13+
- Async inference example: longer `sleep()` duration when polling for inference status
14+
15+
### Fixed
16+
17+
- Removed a forgotten and redundant `print`
18+
1019
## [1.13.0] - 2025-05-21
1120

1221
### Changed

datacrunch/containers/containers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,6 @@ def get_secrets(self) -> List[Secret]:
921921
List[Secret]: List of all secrets.
922922
"""
923923
response = self.client.get(SECRETS_ENDPOINT)
924-
print(response.json())
925924
return [Secret.from_dict(secret) for secret in response.json()]
926925

927926
def create_secret(self, name: str, value: str) -> None:

examples/containers/calling_the_endpoint_with_inference_key_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# Poll for status until completion
3131
while async_inference_execution.status() != AsyncStatus.Completed:
3232
print(async_inference_execution.status_json())
33-
sleep(1)
33+
sleep(5)
3434

3535
# Print the response
3636
print(async_inference_execution.output())

0 commit comments

Comments
 (0)