Skip to content

[Ray Core] Ray error causes the Python interpreter to terminate without failing #28211

@pabloem

Description

@pabloem

What happened + What you expected to happen

Consider this scenario:

ray.init()
my_objref = ray.put('MY TEXT')
ray.shutdown()

ray.init()

@ray.remote
def my_fn(obj):
  print(obj)

my_fn.remote(my_objref)

In this scenario, Ray will generate an error message, and terminate the Python interpreter WITHOUT FAILING. I would expect the Python interpreter to fail (maybr even better: throw a Python error and not terminate)

Versions / Dependencies

Ray 2.0

Reproduction script

ray.init()
my_objref = ray.put('MY TEXT')
ray.shutdown()

ray.init()

@ray.remote
def my_fn(obj):
  print(obj)

my_fn.remote(my_objref)

Issue Severity

Medium: It is a significant difficulty but I can work around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issue moderate in impact or severitybugSomething that is supposed to be working; but isn'tcoreIssues that should be addressed in Ray Corepending-cleanupThis issue is pending cleanup. It will be removed in 2 weeks after being assigned.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions