Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marjo-luc committed Jul 30, 2024
1 parent e672aed commit 75a53df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions api/endpoints/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class Jobs(Resource):
parser = api.parser()
parser.add_argument('page_size', required=False, type=str, help="Job Listing Pagination Size")
parser.add_argument('offset', required=False, type=str, help="Job Listing Pagination Offset")
parser.add_argument('type', type=str, help="Job type + version (ie. topsapp:v1.0)", required=False)
parser.add_argument('job_type', type=str, help="Job type + version (ie. topsapp:v1.0)", required=False)
parser.add_argument('tag', type=str, help="User-defined job tag", required=False)
parser.add_argument('queue', type=str, help="Submitted job queue", required=False)
parser.add_argument('priority', type=int, help="Job priority, 0-9", required=False)
Expand All @@ -484,7 +484,7 @@ def get(self, username):
:param priority: Job priority
:param queue: Queue
:param tag: User tag
:param type: Algorithm type
:param job_type: Algorithm type
:return: List of jobs for a given user that matches query params provided
"""

Expand Down Expand Up @@ -514,7 +514,6 @@ def get(self, username):
logging.info("Finding jobs for user: {}".format(username))
# Get list of jobs ids for the user
response = hysds.get_mozart_jobs(username, **filtered_query_params)
print(response)
job_list = response.get("result")
logging.info("Found Jobs: {}".format(job_list))

Expand Down
1 change: 0 additions & 1 deletion api/utils/hysds_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@ def get_mozart_jobs(username, **kwargs):
url = "{}/job/user/{}?{}".format(settings.MOZART_URL, username, param_list[1:])
logging.info("GET request to find jobs: {}".format(url))
mozart_response = session.get(url)
print(mozart_response.url)

except Exception as ex:
raise ex
Expand Down

0 comments on commit 75a53df

Please sign in to comment.