File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,8 @@ def refresh_token(
173
173
)
174
174
175
175
if response .status_code != 200 :
176
- location .unlink ()
176
+ # Think more
177
+ # location.unlink()
177
178
raise RuntimeError (
178
179
f"An issue occured while refreshing your access token: { response .json ()['detail' ]} "
179
180
)
Original file line number Diff line number Diff line change 16
16
from diracx .core .config import Config as _Config
17
17
from diracx .core .config import ConfigSource
18
18
from diracx .core .properties import SecurityProperty
19
+ from diracx .db .os import JobParametersDB as _JobParametersDB
19
20
from diracx .db .sql import AuthDB as _AuthDB
20
21
from diracx .db .sql import JobDB as _JobDB
21
22
from diracx .db .sql import JobLoggingDB as _JobLoggingDB
23
+ from diracx .db .sql import SandboxMetadataDB as _SandboxMetadataDB
22
24
23
25
T = TypeVar ("T" )
24
26
@@ -28,10 +30,16 @@ def add_settings_annotation(cls: T) -> T:
28
30
return Annotated [cls , Depends (cls .create )] # type: ignore
29
31
30
32
31
- # Databases
33
+ # SQL Databases
32
34
AuthDB = Annotated [_AuthDB , Depends (_AuthDB .transaction )]
33
35
JobDB = Annotated [_JobDB , Depends (_JobDB .transaction )]
34
36
JobLoggingDB = Annotated [_JobLoggingDB , Depends (_JobLoggingDB .transaction )]
37
+ SandboxMetadataDB = Annotated [
38
+ _SandboxMetadataDB , Depends (_SandboxMetadataDB .transaction )
39
+ ]
40
+
41
+ # OpenSearch Databases
42
+ JobParametersDB = Annotated [_JobParametersDB , Depends (_JobParametersDB .session )]
35
43
36
44
# Miscellaneous
37
45
Config = Annotated [_Config , Depends (ConfigSource .create )]
Original file line number Diff line number Diff line change 27
27
)
28
28
29
29
from ..auth import UserInfo , has_properties , verify_dirac_access_token
30
- from ..dependencies import JobDB , JobLoggingDB
30
+ from ..dependencies import JobDB , JobLoggingDB , JobParametersDB
31
31
from ..fastapi_classes import DiracxRouter
32
32
33
33
MAX_PARAMETRIC_JOBS = 20
@@ -353,6 +353,7 @@ async def get_job_status_history_bulk(
353
353
async def search (
354
354
config : Annotated [Config , Depends (ConfigSource .create )],
355
355
job_db : JobDB ,
356
+ job_parameters_db : JobParametersDB ,
356
357
user_info : Annotated [UserInfo , Depends (verify_dirac_access_token )],
357
358
page : int = 0 ,
358
359
per_page : int = 100 ,
Original file line number Diff line number Diff line change 11
11
def cli_env (monkeypatch , tmp_path , demo_dir ):
12
12
"""Set up the environment for the CLI"""
13
13
# HACK: Find the URL of the demo DiracX instance
14
+ # TODO: Make a preferences file when launching the demo
14
15
helm_values = yaml .safe_load ((demo_dir / "values.yaml" ).read_text ())
15
16
host_url = helm_values ["dex" ]["config" ]["issuer" ].rsplit (":" , 1 )[0 ]
16
17
diracx_url = f"{ host_url } :8000"
You can’t perform that action at this time.
0 commit comments