# How to modify @ray.remote API?

**URL:** <https://discuss.ray.io/t/how-to-modify-ray-remote-api/10798>\
**Category:** Uncategorized\
**Created:** [May 26, 2023, 4:04am UTC](https://discuss.ray.io/t/how-to-modify-ray-remote-api/10798 "2023-05-26T04:04:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HuangLianghong](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/huanglianghong/32/3545_2.png) [@HuangLianghong](https://discuss.ray.io/u/HuangLianghong)\
**Post date:** [May 26, 2023, 4:04am UTC](https://discuss.ray.io/t/how-to-modify-ray-remote-api/10798/1 "2023-05-26T04:04:34Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

Hi! I am trying to modify the @ray.remote api to add some options, but I can’t figure out how to do it. Specifically, I think I should modify def rmote() in `python/ray/_private/worker.py`, and it called functools.partial(). When I go to the definetion of this function, it jumps to a file which is not in ray’s repository. Why this happen? Is it because it generate this file during compiling?

---

<div class="post-metadata">

**Author:** ![HuangLianghong](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/huanglianghong/32/3545_2.png) [@HuangLianghong](https://discuss.ray.io/u/HuangLianghong)\
**Post date:** [May 28, 2023, 5:21am UTC](https://discuss.ray.io/t/how-to-modify-ray-remote-api/10798/2 "2023-05-28T05:21:34Z")

</div>

Ok, this is a stupid question, functools.partial() is part of python standard library
