Skip to content

Simulation jobs fail with new version due to `InputData` not existing

Hi @arrabito,

Simulations jobs fail with the current CTADIRAC version since InputData is not defined in ProdDataManager. This was introduced in the line below in a change last week (5c8edffa)

https://gitlab.cta-observatory.org/cta-computing/dpps/workload/CTADIRAC/-/blob/main/src/CTADIRAC/Core/scripts/cta_prod_managedata.py?ref_type=heads#L62

@georgios.voutsinas noticed this issue with CORSIKA simulations, but looking at the code, I expect it will happen also with normal CORSIKA/sim_telarray ones.

The full error we see is below. An example job id is 20621730

<<<<<<<<<< cta-prod-managedata Standard Error >>>>>>>>>>

Traceback (most recent call last):
  File "/scratch/condor/dir_1003068/DIRAC_61h3xjj3pilot/diracos/bin/cta-prod-managedata", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/scratch/condor/dir_1003068/DIRAC_61h3xjj3pilot/diracos/lib/python3.11/site-packages/DIRAC/Core/Base/Script.py", line 74, in __call__
    return entrypointFunc._func()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/scratch/condor/dir_1003068/DIRAC_61h3xjj3pilot/diracos/lib/python3.11/site-packages/CTADIRAC/Core/scripts/cta_prod_managedata.py", line 62, in main
    in_lfn_list = prod_dm.InputData
                  ^^^^^^^^^^^^^^^^^
AttributeError: 'ProdDataManager' object has no attribute 'InputData'