Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dev] Fix formatting #96

Merged
merged 1 commit into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading