Skip to content

Commit

Permalink
[Dev] Fix formatting (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Mar 3, 2024
1 parent 1bd27ec commit ddffa16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions src/conductor/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ def _report_execution_results(self, plan: ExecutionPlan, elapsed_time: float):
# Print the final execution result (succeeded or failed).
if all_succeeded and (main_task_executed or main_task_cached):
print()
print_bold("✨ Done! {}".format(self._get_elapsed_time_string(elapsed_time)))
print_bold(
"✨ Done! {}".format(self._get_elapsed_time_string(elapsed_time))
)

else:
# At least one task must have failed.
Expand All @@ -341,7 +343,9 @@ def _report_execution_results(self, plan: ExecutionPlan, elapsed_time: float):
assert len(failed_tasks) > 0
print()
print_red(
"🔴 Task failed. {}".format(self._get_elapsed_time_string(elapsed_time)),
"🔴 Task failed. {}".format(
self._get_elapsed_time_string(elapsed_time)
),
bold=True,
)
print()
Expand Down
6 changes: 3 additions & 3 deletions src/conductor/execution/version_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ def create_or_load(cls, path: pathlib.Path) -> "VersionIndex":
result = conn.execute(q.get_max_timestamp).fetchone()
return VersionIndex(
conn=conn,
last_timestamp=result[0]
if result is not None and result[0] is not None
else 0,
last_timestamp=(
result[0] if result is not None and result[0] is not None else 0
),
)

# Need to create the DB
Expand Down

0 comments on commit ddffa16

Please sign in to comment.