Skip to content

Calling a remote function with a keyword argument fails #998

Closed

Description

@salsasepp

Not sure if this is a bug or a missing feature:

import ray

@ray.remote
def f(a):
    return a+1
    
ray.init()

f.remote(1)
f.remote(a=1)

The last line produces this error message when using ray 0.2.0:

Exception: The name 'a' is not a valid keyword argument for the function 'f'

Activity

  1. robertnishihara commented on Sep 19, 2017

    @robertnishihara
    Collaborator

    Good catch, and thanks for pointing this out! We probably want to modify this so that remote functions can be called in exactly the same way as regular functions.

    The exception is being raised in this line

    raise Exception("The name '{}' is not a valid keyword argument "

    And the logic is generally in the file https://github.com/ray-project/ray/blob/master/python/ray/signature.py.

  2. jiamings commented on Sep 26, 2017

    @jiamings

    +1
    Hope to see this feature released soon!

  3. abishekk92 commented on Oct 25, 2017

    @abishekk92
    Contributor

    @robertnishihara I can take a shot at this, if nobody is working on it?

  4. robertnishihara commented on Oct 26, 2017

    @robertnishihara
    Collaborator

    @abishekk92 sounds great, I don't think anyone is working on it at the moment.

  5. added a commit that references this issue on May 17, 2018
    6e6a5cc
  6. AdamGleave commented on May 17, 2018

    @AdamGleave
    Contributor

    @robertnishihara can you review PR #2081 addressing this issue?

  7. added a commit that references this issue on Jun 14, 2018
    4d995d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions