Skip to content

Exposing the ability to manually set source id

Compare
Choose a tag to compare
@danield137 danield137 released this 21 Feb 12:27
· 322 commits to master since this release

BREAKING CHANGES:

None.

FEATURES:

  • Add the ability to set the source id of source descriptors. Useful for monitoring purposes (when reading statuses from queue, can correlate status via source_id).
import uuid
size = 1024 # insert correct size 
file_path = "/path/to/file"
source_id = uuid.uuid4()
file_desc = FileDescriptor(file_path, size, source_id)
ingest_client.ingest_from_file(file_desc , json_ingestion_props)

FIXES:

None.