@@ -290,19 +290,19 @@ def run(self, show_output: bool = False, **kwargs) -> ExecutingRun:
290
290
ExecutingRun object for this run.
291
291
"""
292
292
with tempfile .TemporaryDirectory () as temp_dir :
293
- tfp_metadata_pathspec = tempfile .NamedTemporaryFile (
293
+ tfp_runner_attribute = tempfile .NamedTemporaryFile (
294
294
dir = temp_dir , delete = False
295
295
)
296
296
command = self .api (** self .top_level_kwargs ).run (
297
- metadata_pathspec_file = tfp_metadata_pathspec .name , ** kwargs
297
+ runner_attribute_file = tfp_runner_attribute .name , ** kwargs
298
298
)
299
299
300
300
pid = self .spm .run_command (
301
301
[sys .executable , * command ], env = self .env_vars , show_output = show_output
302
302
)
303
303
command_obj = self .spm .get (pid )
304
304
305
- return self .__get_executing_run (tfp_metadata_pathspec , command_obj )
305
+ return self .__get_executing_run (tfp_runner_attribute , command_obj )
306
306
307
307
def resume (self , show_output : bool = False , ** kwargs ):
308
308
"""
@@ -327,19 +327,19 @@ def resume(self, show_output: bool = False, **kwargs):
327
327
ExecutingRun object for this resumed run.
328
328
"""
329
329
with tempfile .TemporaryDirectory () as temp_dir :
330
- tfp_metadata_pathspec = tempfile .NamedTemporaryFile (
330
+ tfp_runner_attribute = tempfile .NamedTemporaryFile (
331
331
dir = temp_dir , delete = False
332
332
)
333
333
command = self .api (** self .top_level_kwargs ).resume (
334
- metadata_pathspec_file = tfp_metadata_pathspec .name , ** kwargs
334
+ runner_attribute_file = tfp_runner_attribute .name , ** kwargs
335
335
)
336
336
337
337
pid = self .spm .run_command (
338
338
[sys .executable , * command ], env = self .env_vars , show_output = show_output
339
339
)
340
340
command_obj = self .spm .get (pid )
341
341
342
- return self .__get_executing_run (tfp_metadata_pathspec , command_obj )
342
+ return self .__get_executing_run (tfp_runner_attribute , command_obj )
343
343
344
344
async def async_run (self , ** kwargs ) -> ExecutingRun :
345
345
"""
@@ -358,11 +358,11 @@ async def async_run(self, **kwargs) -> ExecutingRun:
358
358
ExecutingRun object for this run.
359
359
"""
360
360
with tempfile .TemporaryDirectory () as temp_dir :
361
- tfp_metadata_pathspec = tempfile .NamedTemporaryFile (
361
+ tfp_runner_attribute = tempfile .NamedTemporaryFile (
362
362
dir = temp_dir , delete = False
363
363
)
364
364
command = self .api (** self .top_level_kwargs ).run (
365
- metadata_pathspec_file = tfp_metadata_pathspec .name , ** kwargs
365
+ runner_attribute_file = tfp_runner_attribute .name , ** kwargs
366
366
)
367
367
368
368
pid = await self .spm .async_run_command (
@@ -371,7 +371,7 @@ async def async_run(self, **kwargs) -> ExecutingRun:
371
371
)
372
372
command_obj = self .spm .get (pid )
373
373
374
- return self .__get_executing_run (tfp_metadata_pathspec , command_obj )
374
+ return self .__get_executing_run (tfp_runner_attribute , command_obj )
375
375
376
376
async def async_resume (self , ** kwargs ):
377
377
"""
@@ -390,11 +390,11 @@ async def async_resume(self, **kwargs):
390
390
ExecutingRun object for this resumed run.
391
391
"""
392
392
with tempfile .TemporaryDirectory () as temp_dir :
393
- tfp_metadata_pathspec = tempfile .NamedTemporaryFile (
393
+ tfp_runner_attribute = tempfile .NamedTemporaryFile (
394
394
dir = temp_dir , delete = False
395
395
)
396
396
command = self .api (** self .top_level_kwargs ).resume (
397
- metadata_pathspec_file = tfp_metadata_pathspec .name , ** kwargs
397
+ runner_attribute_file = tfp_runner_attribute .name , ** kwargs
398
398
)
399
399
400
400
pid = await self .spm .async_run_command (
@@ -403,7 +403,7 @@ async def async_resume(self, **kwargs):
403
403
)
404
404
command_obj = self .spm .get (pid )
405
405
406
- return self .__get_executing_run (tfp_metadata_pathspec , command_obj )
406
+ return self .__get_executing_run (tfp_runner_attribute , command_obj )
407
407
408
408
def __exit__ (self , exc_type , exc_value , traceback ):
409
409
self .spm .cleanup ()
0 commit comments