Skip to content

Commit

Permalink
add optional async-related args to entrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
elewis2 committed Jul 12, 2024
1 parent a15f56e commit 62460c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pori_python/ipr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ 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()

with open(args.content, 'r') as fh:
Expand All @@ -107,6 +109,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 62460c0

Please sign in to comment.