Skip to content

BaseJobDescriptionModel uses Operations inappropriately #7426

@chrisburr

Description

@chrisburr

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions