[core] Add a warning when returning an object w/ num_returns=0
#51789
Labels
core
Issues that should be addressed in Ray Core
good-first-issue
Great starter issue for someone just starting to contribute to Ray
P2
Important issue, but not time-critical
usability
What happened + What you expected to happen
If you set
num_returns=0
, it is likely a mistake if you return a non-None object. We should print a warning message in this case to avoid confusion.Here is likely where the warning should go (check
outputs
):ray/python/ray/_raylet.pyx
Line 4381 in 24ad12d
Versions / Dependencies
N/A
Reproduction script
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered: