Skip to content

Commit

Permalink
fix imports for Server
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Dec 4, 2023
1 parent 012cb7d commit cad7e5e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
)
from owe_python_sdk.schema import WorkflowSubmissionRequest, EmptyObject

from core.server import WorkerPool
from core.workers import WorkerPool
from core.workflows import WorkflowExecutor
from utils import bytes_to_json, load_plugins, lbuffer_str as lbuf
from errors import NoAvailableWorkers, WorkflowTerminated
Expand Down
3 changes: 0 additions & 3 deletions src/engine/src/core/server/__init__.py

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/engine/src/core/workers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from core.workers.Worker import Worker
from core.workers.WorkerPool import WorkerPool
2 changes: 1 addition & 1 deletion src/engine/src/core/workflows/WorkflowExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
)
from core.middleware.archivers import S3Archiver, IRODSArchiver
from conf.constants import BASE_WORK_DIR
from core.server import Worker
from core.workers import Worker
from core.state import Hook, method_hook

from core.workflows import params_validator
Expand Down
2 changes: 1 addition & 1 deletion src/engine/src/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys, logging

from core.server import Server
from core.Server import Server


# Set all third-party library loggers to critical
Expand Down
6 changes: 3 additions & 3 deletions src/engine/src/tests/testserver.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import sys
import unittest

# from core.server import Server
from core.Server import Server


class TestServer(unittest.TestCase):
def testServerInit(self):
# self.server = Server()
# self.assertEqual(self.server, type(Server))
self.server = Server()
self.assertEqual(type(self.server), Server)
pass

if __name__ == "__main__":
Expand Down

0 comments on commit cad7e5e

Please sign in to comment.