Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed May 18, 2024
1 parent 97610a3 commit 465cd86
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions argo_jupyter_scheduler/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
gen_default_html_path,
gen_default_output_path,
gen_log_path,
gen_papermill_status_path,
gen_papermill_command_input,
gen_papermill_status_path,
gen_workflow_name,
sanitize_label,
setup_logger,
Expand Down Expand Up @@ -574,7 +574,9 @@ def update_cron_workflow(
logger.info("cron workflow updated")


def main_container(job, use_conda_store_env, input_path, log_path, papermill_status_path, parameters):
def main_container(
job, use_conda_store_env, input_path, log_path, papermill_status_path, parameters
):
envs = []
if parameters is not None:
for key, value in parameters.items():
Expand Down Expand Up @@ -602,15 +604,14 @@ def main_container(job, use_conda_store_env, input_path, log_path, papermill_sta


@script()
def update_job_status_failure(db_url, log_path, papermill_status_path, job_id=None, job_definition_id=None):
def update_job_status_failure(
db_url, log_path, papermill_status_path, job_id=None, job_definition_id=None
):
from jupyter_scheduler.models import Status
from jupyter_scheduler.orm import Job, create_session
from sqlalchemy import desc

from argo_jupyter_scheduler.utils import (
add_file_logger,
setup_logger,
)
from argo_jupyter_scheduler.utils import add_file_logger, setup_logger

# Sets up logging
logger = setup_logger("update_job_status_failure")
Expand Down

0 comments on commit 465cd86

Please sign in to comment.