Skip to content

Commit

Permalink
Flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
fake-name committed Dec 30, 2019
1 parent 4b9a04e commit cab435a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ndscheduler/corescheduler/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import json

from ndscheduler import settings
from apscheduler.schedulers import tornado as apscheduler_tornado

from ndscheduler.corescheduler import constants
Expand Down Expand Up @@ -150,7 +151,7 @@ def add_scheduler_job(self, job_class_string, name, pub_args=None,
return job_id

def add_trigger_scheduler_job(self, job_class_string, name, pub_args, trigger,
**kwargs):
**kwargs):
"""Add a job. Job infomation will be persistent in postgres.
This is a NON-BLOCKING operation, as internally, apscheduler calls wakeup()
Expand Down
1 change: 0 additions & 1 deletion ndscheduler/corescheduler/datastore/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def _build_execution(self, row):
'task_name': utils.get_job_name(job),
'pub_args': utils.get_job_args(job)}


if isinstance(job.trigger, apscheduler.triggers.cron.CronTrigger):
return_json.update(utils.get_cron_strings(job))
return_json["trigger_type"] = "cron"
Expand Down
2 changes: 1 addition & 1 deletion ndscheduler/corescheduler/datastore/providers/postgres.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Represents Postgres datastore."""

import sys
from ndscheduler.corescheduler.datastore import base


Expand Down

0 comments on commit cab435a

Please sign in to comment.