Skip to content

Commit 537abee

Browse files
Fix linter
Signed-off-by: jeffreywang <jeffreywang@anyscale.com>
1 parent 55da6cc commit 537abee

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

python/ray/serve/_private/deployment_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
RunningReplicaInfo,
3838
)
3939
from ray.serve._private.config import DeploymentConfig
40-
from ray.serve.config import GangRuntimeFailurePolicy
4140
from ray.serve._private.constants import (
4241
DEFAULT_LATENCY_BUCKET_MS,
4342
MAX_PER_REPLICA_RETRY_COUNT,
@@ -72,6 +71,7 @@
7271
msgpack_serialize,
7372
)
7473
from ray.serve._private.version import DeploymentVersion
74+
from ray.serve.config import GangRuntimeFailurePolicy
7575
from ray.serve.generated.serve_pb2 import DeploymentLanguage
7676
from ray.serve.schema import (
7777
DeploymentDetails,

python/ray/serve/_private/replica.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from ray.serve._private.common import (
4949
RUNNING_REQUESTS_KEY,
5050
DeploymentID,
51+
GangContext,
5152
ReplicaID,
5253
ReplicaMetricReport,
5354
ReplicaQueueLengthInfo,

python/ray/serve/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,10 @@ class GangRuntimeFailurePolicy(str, Enum):
800800
"""Tear down and restart entire gang atomically when any replica fails."""
801801

802802
RESTART_REPLICA = "RESTART_REPLICA"
803-
"""Tear down and restart individual replica when it fails. Other replicas in the gang will continue running."""
803+
"""
804+
Tear down and restart individual replica when it fails.
805+
Other replicas in the gang will continue running.
806+
"""
804807

805808

806809
@PublicAPI(stability="alpha")

python/ray/serve/tests/test_deployment_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import ray
77
from ray import serve
8-
from ray.serve.config import GangSchedulingConfig, GangPlacementStrategy
98
from ray._common.test_utils import wait_for_condition
109
from ray._raylet import GcsClient
1110
from ray.serve._private import default_impl
@@ -17,6 +16,7 @@
1716
)
1817
from ray.serve._private.test_utils import check_apps_running, get_node_id
1918
from ray.serve._private.utils import get_head_node_id
19+
from ray.serve.config import GangPlacementStrategy, GangSchedulingConfig
2020
from ray.tests.conftest import * # noqa
2121

2222

0 commit comments

Comments
 (0)