Skip to content

Commit

Permalink
Fixing linting errors
Browse files Browse the repository at this point in the history
Fixing linting errors
  • Loading branch information
NaveenKinnal committed Mar 6, 2023
1 parent 76e7d37 commit 9b838af
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def on_startup() -> None:
component_manager: ComponentOperations = get_component_manager(token=token)

with lock:

# cache all scheduled jobs from the database
for project in component_manager.get_project_manager().list_projects():
scheduled_jobs = get_all_scheduled_jobs_from_db(
Expand Down Expand Up @@ -105,7 +104,6 @@ def create_schedule(
def list_schedules(
project_id: str,
) -> Any:

with lock:
if project_id not in cached_scheduled_jobs:
return []
Expand All @@ -125,7 +123,6 @@ def list_schedule(
project_id: str,
job_id: str,
) -> Any:

with lock:
if project_id not in cached_scheduled_jobs:
raise HTTPException(status_code=404, detail="Project not found.")
Expand Down Expand Up @@ -233,7 +230,6 @@ def get_all_scheduled_jobs_from_db(
def get_job_from_job_input(
job_schedule: ScheduledJobInput, job_id: Optional[str] = None
) -> ScheduledJob:

return ScheduledJob(
cron_string=job_schedule.cron_string,
job_input=job_schedule.job_input,
Expand Down

0 comments on commit 9b838af

Please sign in to comment.