Skip to content

Commit

Permalink
Merge pull request #11 from bcgsc/feat/DEVSU-2349-add-async-option-to…
Browse files Browse the repository at this point in the history
…-command-interface

add optional async-related args to entrypt
  • Loading branch information
elewis2 authored Jul 13, 2024
2 parents a15f56e + 583db52 commit 39682e6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pori_python/ipr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ def command_interface() -> None:
action="store_true",
help='Write to output_json_path on successful IPR uploads instead of just when the upload fails',
)
parser.add_argument(
'--async_upload',
default=False,
action='store_true',
help='True if reports-async ipr endpoint should be used instead of basic reports',
)
parser.add_argument(
'--mins_to_wait',
default=5,
action='store',
help='is using reports-async, number of minutes to wait before throwing error',
)

args = parser.parse_args()

Expand All @@ -107,6 +119,8 @@ def command_interface() -> None:
always_write_output_json=args.always_write_output_json,
generate_therapeutics=args.therapeutics,
generate_comments=not args.skip_comments,
async_upload=args.async_upload,
mins_to_wait=args.mins_to_wait,
)


Expand Down

0 comments on commit 39682e6

Please sign in to comment.