Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up legacy in Job class schema #2110

Open
egede opened this issue Feb 13, 2023 · 6 comments
Open

Clean up legacy in Job class schema #2110

egede opened this issue Feb 13, 2023 · 6 comments

Comments

@egede
Copy link
Member

egede commented Feb 13, 2023

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 egede changed the title Clean up leagacy in Job class schema Clean up legacy in Job class schema Feb 21, 2023
@vedanshbhartia
Copy link
Contributor

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

@egede
Copy link
Member Author

egede commented Mar 27, 2023

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

@Tanuj-rai
Copy link

Tanuj-rai commented Mar 28, 2023

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?

@egede
Copy link
Member Author

egede commented Mar 28, 2023

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.

@vedanshbhartia
Copy link
Contributor

vedanshbhartia commented Apr 19, 2023

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?

@egede
Copy link
Member Author

egede commented Apr 20, 2023

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

vedanshbhartia added a commit to vedanshbhartia/ganga that referenced this issue Apr 20, 2023
Removes the LCG backend and related code
shalearkane pushed a commit that referenced this issue Jun 26, 2023
Removes the LCG backend and related code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants