Skip to content

Conversation

@heiruwu
Copy link
Contributor

@heiruwu heiruwu commented Nov 2, 2023

Because

  • grpc channel not close
  • overwriting _del_ is a will cause resource deletion after script finish

This commit

  • move resource function _del_ to delete
  • close grpc channels propely

@linear
Copy link

linear bot commented Nov 2, 2023

INS-2506 [Bug] python program stuck if resources not cleansed

Is There an Existing Issue for This?

  • I have searched the existing issues

Project

Instill SDK

Describe the Bug

if a script does not deliberately delete the resource, the program will not exit.

Steps to Reproduce

  1. create a pipeline
  2. program stuck

Actual Result

program stuck

Expected Behavior

program exit after all codes ran

Technical Details

  • Project version:
  • Service name: python-sdk
  • Service version: 0.3.0rc11
  • OS: macOS
  • Browser:

Anything Else?

No response

@heiruwu heiruwu merged commit 3deb97b into main Nov 2, 2023
@heiruwu heiruwu deleted the heiru/ins-2506-bug-python-program-stuck-if-resources-not-cleansed branch November 2, 2023 21:07
heiruwu added a commit that referenced this pull request Nov 2, 2023
…se (#42)

Because

- grpc channel not close
- overwriting `_del_` is a will cause resource deletion after script
finish

This commit

- move resource function `_del_` to `delete`
- close grpc channels propely
heiruwu added a commit that referenced this pull request Nov 2, 2023
…se (#42)

Because

- grpc channel not close
- overwriting `_del_` will cause resource deletion after script
finish

This commit

- move resource function `_del_` to `delete`
- close grpc channels propely
heiruwu pushed a commit that referenced this pull request Nov 7, 2023
🤖 I have created a release *beep* *boop*
---


##
[0.3.0](v0.2.1...v0.3.0)
(2023-11-07)


### ⚠ BREAKING CHANGES

* **client:** fix wrongful delete of resources and connection not close
([#42](#42))

### Features

* **ray:** add help functions for ray model
([#40](#40))
([39b2cc7](39b2cc7))


### Bug Fixes

* **client:** fix wrongful delete of resources and connection not close
([#42](#42))
([d32fb83](d32fb83))
* **config,pipeline:** allow no config file and fix required pipeline
recipe ([#43](#43))
([5290868](5290868))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: 👋 Done

Development

Successfully merging this pull request may close these issues.

[INS-2506] [Bug] python program stuck if resources not cleansed

3 participants