Open chaen opened 2 months ago
Right now, I see that https://github.com/DIRACGrid/diracx/blob/main/diracx-routers/src/diracx/routers/job_manager/__init__.py contains the code of what in DIRAC was JobManager and JobMonitor handlers. The only other WMS related router created is https://github.com/DIRACGrid/diracx/blob/main/diracx-routers/src/diracx/routers/job_manager/sandboxes.py.
Do I understand correctly that you would prefer to re-organize in a way similar to what is done for auth ? (https://github.com/DIRACGrid/diracx/blob/main/diracx-routers/src/diracx/routers/auth/__init__.py)
The
__init__.py
contains too much code, but we agree we want to avoid the extreme of one class per file (from JobDB import JobDB
style). The current consensus would be like that:configuration.py
for example)routers.job
). The code goes in a specific file (job.py
,joblogging.py
) but we use the the__init__.py
to expose the specific file