mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 03:53:14 +08:00
Enforce quoting style in Travis. (#4589)
This commit is contained in:
committed by
Robert Nishihara
parent
6697407ec4
commit
e88e706fcc
+8
-8
@@ -741,26 +741,26 @@ def make_actor(cls, num_cpus, num_gpus, resources, max_reconstructions):
|
||||
ray.worker.global_worker.make_actor = make_actor
|
||||
|
||||
CheckpointContext = namedtuple(
|
||||
'CheckpointContext',
|
||||
"CheckpointContext",
|
||||
[
|
||||
# Actor's ID.
|
||||
'actor_id',
|
||||
"actor_id",
|
||||
# Number of tasks executed since last checkpoint.
|
||||
'num_tasks_since_last_checkpoint',
|
||||
"num_tasks_since_last_checkpoint",
|
||||
# Time elapsed since last checkpoint, in milliseconds.
|
||||
'time_elapsed_ms_since_last_checkpoint',
|
||||
"time_elapsed_ms_since_last_checkpoint",
|
||||
],
|
||||
)
|
||||
"""A namedtuple that contains information about actor's last checkpoint."""
|
||||
|
||||
Checkpoint = namedtuple(
|
||||
'Checkpoint',
|
||||
"Checkpoint",
|
||||
[
|
||||
# ID of this checkpoint.
|
||||
'checkpoint_id',
|
||||
"checkpoint_id",
|
||||
# The timestamp at which this checkpoint was saved,
|
||||
# represented as milliseconds elapsed since Unix epoch.
|
||||
'timestamp',
|
||||
"timestamp",
|
||||
],
|
||||
)
|
||||
"""A namedtuple that represents a checkpoint."""
|
||||
@@ -856,7 +856,7 @@ def get_checkpoints_for_actor(actor_id):
|
||||
return []
|
||||
checkpoints = [
|
||||
Checkpoint(checkpoint_id, timestamp) for checkpoint_id, timestamp in
|
||||
zip(checkpoint_info['CheckpointIds'], checkpoint_info['Timestamps'])
|
||||
zip(checkpoint_info["CheckpointIds"], checkpoint_info["Timestamps"])
|
||||
]
|
||||
return sorted(
|
||||
checkpoints,
|
||||
|
||||
Reference in New Issue
Block a user