Skip to content

File Status not updating when sending multiple files #76

@amanrique1

Description

@amanrique1

I am using the DBSApi from the python client but I see no change on DAS when sending a list of files as logical_file_name parameter. If I call the same function but with an individual file instead of a list it works fine.

from dbs.apis.dbsClient import DbsApi

TEST_url="https://cmsweb-testbed.cern.ch/dbs2go-writer"
PROD_url="https://cmsweb.cern.ch/dbs/prod/global/DBSWriter"

dbsApi = DbsApi(url=PROD_url)

files = ['/store/data/Run2023C/AlCaLumiPixelsCountsPrompt/ALCARECO/AlCaPCCRandom-PromptReco-v2/000/367/622/00000/cdebecd9-01b0-4650-88f3-47da0088d3b3.root','/store/data/Run2023C/AlCaLumiPixelsCountsPrompt/ALCARECO/AlCaPCCZeroBias-PromptReco-v2/000/367/622/00000/e456c767-925a-4fb6-8ecc-82a08b294c51.root']
result = dbsApi.updateFileStatus(logical_file_name=files, is_file_valid=0, lost=0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions