[Raylet][Cleanup] Remove Extra Indent & Fix Typo (#28073)

* Rename `is_existing` to `is_exiting`
* Redundant `if statement`. This is covered by: 

6bedaa5c87/python/ray/_raylet.pyx (L581)
This commit is contained in:
Ian Rodney 2022-08-29 15:32:36 -07:00 committed by GitHub
parent a15442a510
commit 8934a8d32b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -583,7 +583,6 @@ cdef execute_task(
actor_id = core_worker.get_actor_id()
actor = actor_class.__new__(actor_class)
worker.actors[actor_id] = actor
if (<int>task_type == <int>TASK_TYPE_ACTOR_CREATION_TASK):
# Record the actor class via :actor_name: magic token in the log.
#
# (Phase 1): this covers code run before __init__ finishes.
@ -702,8 +701,8 @@ cdef execute_task(
with core_worker.profile_event(b"task:execute"):
task_exception = True
try:
is_existing = core_worker.is_exiting()
if is_existing:
is_exiting = core_worker.is_exiting()
if is_exiting:
title = f"{title}::Exiting"
next_title = f"{next_title}::Exiting"
with ray._private.worker._changeproctitle(title, next_title):