Skip to content

Commit

Permalink
fix logging and comments, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Nov 17, 2023
1 parent 09a8c06 commit f65aca7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "argowrapper"
version = "1.8.0"
version = "1.8.1"
description = "argo wrapper for va workflow"
authors = ["UchicagoZchen138 <[email protected]>"]
repository = "https://github.com/uc-cdis/argo-wrapper"
Expand Down
6 changes: 2 additions & 4 deletions src/argowrapper/engine/argo_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,8 @@ def get_workflows_for_user(self, auth_header: str) -> List[Dict]:

def get_user_workflows_for_current_month(self, auth_header: str) -> List[Dict]:
"""
Get the list of all workflows for the current user. Each item in the list
contains the workflow name, its status, start and end time.
Considers solely the workflows that are labelled with ONLY the user name (so no
team project label)
Get the list of all succeeded and running workflows the current user owns in the current month.
Each item in the list contains the workflow name, its status, start and end time.
Args:
auth_header: authorization header that contains the user's jwt token
Expand Down
3 changes: 0 additions & 3 deletions src/argowrapper/routes/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,14 @@ def check_user_billing_id(request):
exception = Exception("Could not determine user billing info from fence", e)
logger.error(exception)
traceback.print_exc()
traceback.print_exc()
raise exception
logger.info("Got user info successfully. Checking for billing id..")

if "tags" in user_info and "billing_id" in user_info["tags"]:
billing_id = user_info["tags"]["billing_id"]
logger.info("billing id found in user tags: " + billing_id)
logger.info("billing id found in user tags: " + billing_id)
return billing_id
else:
logger.info("billing id not found.")
logger.info("billing id not found.")
return None

Expand Down

0 comments on commit f65aca7

Please sign in to comment.