Skip to content

Commit

Permalink
Fix: Fixed import sorts
Browse files Browse the repository at this point in the history
  • Loading branch information
nesitor committed Oct 23, 2023
1 parent a4c4a84 commit ad322a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions src/aleph/vm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
ProgramContent,
)

from aleph.vm.conf import settings
from aleph.vm.controllers.firecracker.executable import AlephFirecrackerExecutable
from aleph.vm.controllers.firecracker.instance import AlephInstanceResources
from aleph.vm.controllers.firecracker.program import (
Expand All @@ -22,12 +23,14 @@
AlephProgramResources,
)
from aleph.vm.network.interfaces import TapInterface
from aleph.vm.utils import create_task_log_exceptions, dumps_for_json

from aleph.vm.conf import settings
from aleph.vm.orchestrator.metrics import ExecutionRecord, save_execution_data, save_record
from aleph.vm.orchestrator.metrics import (
ExecutionRecord,
save_execution_data,
save_record,
)
from aleph.vm.orchestrator.pubsub import PubSub
from aleph.vm.orchestrator.vm import AlephFirecrackerInstance
from aleph.vm.utils import create_task_log_exceptions, dumps_for_json

if TYPE_CHECKING:
from aleph.vm.controllers.firecracker.snapshot_manager import SnapshotManager
Expand Down
2 changes: 1 addition & 1 deletion src/aleph/vm/orchestrator/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
from aleph.vm.utils import HostNotFoundError

from ..conf import settings
from ..pool import VmPool
from ..models import VmExecution
from ..pool import VmPool
from .messages import load_updated_message
from .pubsub import PubSub

Expand Down
6 changes: 3 additions & 3 deletions src/aleph/vm/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from aleph_message.models import ExecutableMessage, ItemHash
from aleph_message.models.execution.instance import InstanceContent

from aleph.vm.controllers.firecracker.snapshot_manager import SnapshotManager

from aleph.vm.conf import settings
from aleph.vm.controllers.firecracker.snapshot_manager import SnapshotManager
from aleph.vm.network.hostnetwork import Network, make_ipv6_allocator
from .models import ExecutableContent, VmExecution
from aleph.vm.orchestrator.vm.vm_type import VmType

from .models import ExecutableContent, VmExecution

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit ad322a4

Please sign in to comment.