dmwm / dmwm/DBSClient

File Status not updating when sending multiple files

Open
#76 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.