IPWorks Cloud 2020 Python Edition

Questions / Feedback?

on_fragment_complete Event

Fires after each block in an automatic block-based upload is complete.

Syntax

class AzureBlobFragmentCompleteEventParams(object):
  @property
  def fragment_number() -> int: ...
  @property
  def fragment_count() -> int: ...
  @property
  def interrupt() -> bool: ...
  @interrupt.setter
  def interrupt(value) -> None: ...

# In class AzureBlob:
@property
def on_fragment_complete() -> Callable[[AzureBlobFragmentCompleteEventParams], None]: ...
@on_fragment_complete.setter
def on_fragment_complete(event_hook: Callable[[AzureBlobFragmentCompleteEventParams], None]) -> None: ...

Remarks

When create_blob is used to create a new block blob, and more than SimpleUploadLimit bytes of upload data is provided, the class will automatically split the upload data up into blocks to perform the upload. During the overall upload process, this event will fire after each block is uploaded, providing an indication of overall upload progress.

FragmentNumber is the number of the current block that has completed. This value starts at 1.

FragmentCount is the total number of blocks that will be uploaded.

Interrupt can be set to True to interrupt the upload. The upload may be resumed later.

Refer to create_blob for more information.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Python Edition - Version 20.0 [Build 8265]