Skip to content

Commit

Permalink
chore: move the event handling to its own app
Browse files Browse the repository at this point in the history
Signed-off-by: SdgJlbl <[email protected]>
  • Loading branch information
SdgJlbl committed Jul 11, 2023
1 parent 396af78 commit 1110ea3
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions backend/backend/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"django_celery_results",
"rest_framework",
"rest_framework_simplejwt.token_blacklist",
"events",
"substrapp",
"organization",
"users",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import structlog
from django.core.management.base import BaseCommand

from substrapp.events import health
from substrapp.events.reactor import consume
from events import health
from events.reactor import consume

logger = structlog.get_logger("events")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import orchestrator.common_pb2 as common_pb2
import orchestrator.computetask_pb2 as computetask_pb2
import orchestrator.event_pb2 as event_pb2
from events import handler_compute_engine
from events import health
from orchestrator import model_pb2
from substrapp.events import handler_compute_engine
from substrapp.events import health
from substrapp.models import WorkerLastEvent
from substrapp.orchestrator import get_orchestrator_client
from substrapp.tasks.tasks_compute_plan import queue_delete_cp_pod_and_dirs_and_optionally_images
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import orchestrator
import orchestrator.mock as orc_mock
from substrapp.events import handler_compute_engine
from events import handler_compute_engine


@pytest.mark.parametrize(
Expand Down

0 comments on commit 1110ea3

Please sign in to comment.