Skip to content

Commit

Permalink
increment poll after each iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Dec 12, 2024
1 parent 790dd4f commit 06bfdd4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions reg_chxr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
logger.remove()
logger.add(sys.stderr, format=logger_format)

__version__ = '1.0.2'
__version__ = '1.0.3'

DISPLAY_TITLE = r"""
_ _
Expand Down Expand Up @@ -120,6 +120,7 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):
total_polls = 10
wait_poll = 2
while registered_file_count < file_count and poll_count <= total_polls:
poll_count += 1
time.sleep(wait_poll)
registered_file_count = cube_cl.get_pacs_registered(pacs_search_params)

Expand All @@ -128,6 +129,7 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):
raise Exception(f"PACS file registration unsuccessful. Please try again.")
LOG(f"{registered_file_count} files were successfully registered to CUBE.")


def sanitize_for_cube(series: dict) -> dict:
"""
TBD
Expand All @@ -139,6 +141,5 @@ def sanitize_for_cube(series: dict) -> dict:




if __name__ == '__main__':
main()

0 comments on commit 06bfdd4

Please sign in to comment.