-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add delete_creating_tasks
option for internal.free()
#4588
Add delete_creating_tasks
option for internal.free()
#4588
Conversation
Can one of the admins verify this patch? |
Test FAILed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a test?
@@ -8,7 +8,7 @@ | |||
__all__ = ["free"] | |||
|
|||
|
|||
def free(object_ids, local_only=False): | |||
def free(object_ids, local_only=False, delete_creating_tasks=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document this new arg
@@ -96,7 +96,7 @@ Java_org_ray_runtime_raylet_RayletClientImpl_nativeGenerateTaskId(JNIEnv *, jcla | |||
JNIEXPORT void JNICALL | |||
Java_org_ray_runtime_raylet_RayletClientImpl_nativeFreePlasmaObjects(JNIEnv *, jclass, | |||
jlong, jobjectArray, | |||
jboolean); | |||
jboolean, jboolean); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also update the comment of the function signature in both .h and .cc files?
Test FAILed. |
Test FAILed. |
5bd9e0f
to
d123dc5
Compare
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
What do these changes do?
Add an option
delete_creating_tasks
forfree()
to indicate whether also delete the obkects' creating tasks.Linter
scripts/format.sh
to lint the changes in this PR.