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

BaseJobDescriptionModel uses Operations inappropriately #7426

Open
chrisburr opened this issue Jan 27, 2024 · 0 comments
Open

BaseJobDescriptionModel uses Operations inappropriately #7426

chrisburr opened this issue Jan 27, 2024 · 0 comments
Labels
Milestone

Comments

@chrisburr
Copy link
Member

The new BaseJobDescriptionModel uses Operations() as part of the definition of a class, e.g.

cpuTime: int = Operations().getValue("JobDescription/DefaultCPUTime", 86400)

This doesn't do what is expected as it is evaluated during the import of the file.

The simple solutions would be to use default_factory with Operations() however this relies on global state that isn't present in DiracX so it's not a good idea. The best solution probably requires a bit more thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant