Skip to content

Commit

Permalink
Do not store None when task fails
Browse files Browse the repository at this point in the history
  • Loading branch information
WardLT committed Jan 5, 2024
1 parent 7999b2d commit a6bd583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colmena/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def mark_compute_ended(self):
"""Mark when the task finished executing"""
self.timestamp.compute_ended = datetime.now().timestamp()

def set_result(self, result: Any, runtime: float = None):
def set_result(self, result: Any, runtime: float = nan):
"""Set the value of this computation
Automatically sets the "time_result_completed" field and, if known, defines the runtime.
Expand Down

0 comments on commit a6bd583

Please sign in to comment.