This class is returned by one of the prepareDirty
methods, such as a pdg.WorkItem.prepareDirty. It holds a list of work items that should be dirtied and exposes a method to apply the dirty operation at a later point in time.
Methods ¶
applyDirty(delete_outputs)
Applies the dirty operation stored in this object. If delete_outputs
is True
, the output files of the work items are also deleted from disk.
keepFilePath(path)
Marks a file path so that it’s not deleted on disk when applying the dirty operation.
deleteSet
: list
of pdg.WorkItem
Property
The set of pdg.WorkItem instances that will be deleted by the dirty operation stored in this object.
dirtyFiles
: list
of pdg.File
Property
The set of pdg.File instances from all of the work items that are being dirtied.
keepFiles
: list
of pdg.File
Property
The set of pdg.File instances from all of the work items that will not be deleted by the dirty operation.
dirtySet
: list
of pdg.WorkItem
Property
The set of pdg.WorkItem instances that will be dirtied by the dirty operation stored in this object. This includes all entries in the deleteSet
as well.
dirtyType
: pdg.workItemDirtyType
Property
The type of dirty operation.