Skip to content

Commit

Permalink
trying to revert a change
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost committed Aug 29, 2023
1 parent d8e500e commit e50ce97
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
8 changes: 4 additions & 4 deletions covalent/_file_transfer/strategies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
except: # pragma: no cover
pass

try:
from .gcloud_strategy import GCloud
except: # pragma: no cover
pass
# try:
# from .gcloud_strategy import GCloud
# except: # pragma: no cover
# pass
43 changes: 23 additions & 20 deletions covalent_dispatcher/_cli/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import socket
import sys
import time
import traceback
from pathlib import Path
from subprocess import DEVNULL, Popen
from typing import Optional
Expand Down Expand Up @@ -450,25 +449,29 @@ def start(
else:
set_config("sdk.no_cluster", "true")

try:
with Status("Starting server...", console=console):
port = _graceful_start(
UI_SRVDIR,
UI_PIDFILE,
UI_LOGFILE,
port,
no_cluster,
develop,
no_triggers,
triggers_only,
)
except Exception:
click.secho("Error: ", fg="red")
click.secho(
"Covalent was unable to start due to the following error: ", fg="red", bold=True
)
click.secho(traceback.format_exc(), fg="lightgrey")
return ctx.exit(1)
port = _graceful_start(
UI_SRVDIR, UI_PIDFILE, UI_LOGFILE, port, no_cluster, develop, no_triggers, triggers_only
)

# try:
# with Status("Starting server...", console=console):
# port = _graceful_start(
# UI_SRVDIR,
# UI_PIDFILE,
# UI_LOGFILE,
# port,
# no_cluster,
# develop,
# no_triggers,
# triggers_only,
# )
# except Exception:
# click.secho("Error: ", fg="red")
# click.secho(
# "Covalent was unable to start due to the following error: ", fg="red", bold=True
# )
# click.secho(traceback.format_exc(), fg="lightgrey")
# return ctx.exit(1)

set_config("user_interface.port", port)
set_config("dispatcher.port", port)
Expand Down
4 changes: 2 additions & 2 deletions tests/functional_tests/basic_dispatcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def bad_workflow(name):
res = ct.get_result(dispatch_id, wait=True)
output = res.result

assert output == "aqbq"
print("RESULT:", res)
assert str(res) == "aqbq"
# print("RESULT:", res)

try:
output = ct.dispatch(bad_workflow)("z")
Expand Down

0 comments on commit e50ce97

Please sign in to comment.