Skip to content

Commit 66ec2fd

Browse files
committed
feat: introduce project run policy abstraction and default implementation
1 parent 1085f1c commit 66ec2fd

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

services/web/server/src/simcore_service_webserver/director_v2/_controller/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from ...security.decorators import permission_required
3333
from ...utils_aiohttp import envelope_json_response
3434
from .. import _client, _service
35-
from .._abc import CommitID, get_project_run_policy
35+
from .._service_abc import CommitID, get_project_run_policy
3636
from ._rest_exceptions import handle_rest_requests_exceptions
3737

3838
_logger = logging.getLogger(__name__)

services/web/server/src/simcore_service_webserver/director_v2/_utils.py renamed to services/web/server/src/simcore_service_webserver/director_v2/_service_abc_default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from aiohttp import web
1010
from models_library.projects import ProjectID
1111

12-
from ._abc import AbstractProjectRunPolicy, CommitID
12+
from ._service_abc import AbstractProjectRunPolicy, CommitID
1313

1414
log = logging.getLogger(__name__)
1515

services/web/server/src/simcore_service_webserver/director_v2/director_v2_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
from ._abc import (
2-
AbstractProjectRunPolicy,
3-
get_project_run_policy,
4-
set_project_run_policy,
5-
)
61
from ._client import is_healthy
72
from ._service import (
83
create_or_update_pipeline,
@@ -12,6 +7,11 @@
127
is_pipeline_running,
138
stop_pipeline,
149
)
10+
from ._service_abc import (
11+
AbstractProjectRunPolicy,
12+
get_project_run_policy,
13+
set_project_run_policy,
14+
)
1515
from .exceptions import DirectorServiceError
1616

1717
# director-v2 module internal API

services/web/server/src/simcore_service_webserver/director_v2/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
from ..rest.plugin import setup_rest
1212
from . import _client, _controller
13-
from ._abc import set_project_run_policy
14-
from ._utils import DefaultProjectRunPolicy
13+
from ._service_abc import set_project_run_policy
14+
from ._service_abc_default import DefaultProjectRunPolicy
1515

1616
_logger = logging.getLogger(__name__)
1717

0 commit comments

Comments
 (0)