ganga icon indicating copy to clipboard operation
ganga copied to clipboard

Clean up legacy in Job class schema

Open egede opened this issue 2 years ago • 6 comments

The Job class has some very old legacy fields in the schema. The fields inputsandbox, outputsandbox and outputdata can be removed.

The rest of the code base should be checked and places where these are used should be removed as it all deals with legacy ways of specifying a job.

The ForbidLegacyOutput config option should be removed as well. This last bit is related to #2109.

egede avatar Feb 13 '23 10:02 egede

Hi, I was looking into this issue. Should the ForbidLegacyInput Option be removed as well as part of this change?

vedanshbhartia avatar Mar 24 '23 12:03 vedanshbhartia

Yes, it should indeed. Make sure to keep the inputdata field in the schema though.

egede avatar Mar 27 '23 03:03 egede

I am working on this issue, but I would like to know what I should write in place of the field that is being removed. In conditional statements fields are used so how should I remove them?

Tanuj-rai avatar Mar 28 '23 13:03 Tanuj-rai

I am working on this issue, but I would like to know what I should write in place of the field that is being removed. In conditional statements fields are used so how should I remove them?

I believe that @vedanshbhartia is already working on this issue. As a reply to your question, the ForbidLegacyOutput output option can be regarded as always being True, so conditional statements should be removed to reflect this.

egede avatar Mar 28 '23 14:03 egede

Some components (such as the preparejob funtion in ganga/GangaCore/Lib/LCG/LCG.py) contain input_sandbox and output_sandbox fields. However, their usage is not wrapped around a check for ForbidLegacy[Input/Output]. Are these variables different from the sandboxes used in Job.py?

vedanshbhartia avatar Apr 19 '23 08:04 vedanshbhartia

That rather reflects that the complete LCG backend should be removed. Might be best to do that in a separate PR first in fact.

egede avatar Apr 20 '23 00:04 egede