wiring.validate_quarantine_key()

Raise if another asset already materializes the quarantine’s asset key.

Usage

Source

wiring.validate_quarantine_key(context)

Call it at the start of a hand-wired asset’s function when the asset writes a quarantine, as dd.asset does. In a direct invocation it does nothing.

Raises

QuarantineKeyCollisionError
Another asset in the code location materializes <name>_quarantine.