watch_transfer_progress#

dkist.net.globus.watch_transfer_progress(task_id, tfr_client, poll_interval=5, verbose=False, initial_n=None)[source]#

Wait for a Globus transfer task to finish and display a progress bar.

Parameters:
  • task_id (str) – The task to monitor.

  • tfr_client (globus_sdk.TransferClient) – The transfer client to use to monitor the task.

  • poll_interval (int, optional) – The number of seconds to wait between API calls.

  • verbose (bool) – If True print all events received from Globus, defaults to False which just prints Error events.