RequestOperation to create a tarball from a list of LFNs.

Download a list of files to local storage, then tars it and uploads it to a StorageElement

This operation requires the following arguments:

  • ArchiveLFN: The LFN of the tarball
  • SourceSE: Where the files to be archived are downloaded from
  • TarballSE: Where the tarball will be uploaded to
  • RegisterDescendent: If True the tarball will be registered as a descendent of the LFNs
class DIRAC.DataManagementSystem.Agent.RequestOperations.ArchiveFiles.ArchiveFiles(operation=None, csPath=None)

Bases: DIRAC.RequestManagementSystem.private.OperationHandlerBase.OperationHandlerBase

ArchiveFiles operation handler.

__init__(operation=None, csPath=None)

Initialize the ArchifeFiles handler.

  • self – self reference
  • operation (Operation) – Operation instance
  • csPath (string) – CS path for this handler

get proxy for lfn

Parameters:lfn (str) – LFN
Returns:S_ERROR or S_OK( “/path/to/proxy/file” )

prepare waiting files list, update Attempt, filter out MaxAttempt

makeProperty(name, value, readOnly=False)

Add property :name: to class

This also creates a private :_name: attribute If you want to make read only property, set :readOnly: flag to True :warn: could raise AttributeError if :name: of :_name: is already defined as an attribute

classmethod rssClient()

ResourceStatusClient getter

rssSEStatus(se, status, retries=2)

check SE :se: for status :status:

  • se (str) – SE name
  • status (str) – RSS status

operation and request setter

Parameters:operation (Operation) – operation instance
Raises:TypeError – if operation in not an instance of Operation