Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Fix: Verify Batch task has node_info (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafreck authored Nov 1, 2018
1 parent 6d2e6c5 commit 385040d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aztk/client/base/helpers/task_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def __convert_task_to_entity(partition_key, task):
def __convert_batch_task_to_aztk_task(batch_task):
task = Task()
task.id = batch_task.id
task.node_id = batch_task.node_info.node_id
if batch_task.node_info:
task.node_id = batch_task.node_info.node_id
task.state = batch_task.state
task.state_transition_time = batch_task.state_transition_time
task.command_line = batch_task.command_line
Expand Down

0 comments on commit 385040d

Please sign in to comment.