Skip to content

Commit

Permalink
repl import fine
Browse files Browse the repository at this point in the history
  • Loading branch information
tphung3 committed Oct 13, 2023
1 parent 1fb5db0 commit f601758
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion parsl/executors/taskvine/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@
from parsl.process_loggers import wrap_with_logs
from parsl.executors.taskvine.errors import TaskVineFactoryFailure

from ndcctools.taskvine import Factory
# This try except clause prevents import errors
# when TaskVine is not used in Parsl.
try:
from ndcctools.taskvine import Factory
taskvine_available = True
except ImportError:
taskvine_available = False

logger = logging.getLogger(__name__)


@wrap_with_logs
def _taskvine_factory(should_stop, factory_config):
if not taskvine_available:
logger.debug("TaskVine package cannot be found. Please install the ndcctools package.")
return
logger.debug("Starting TaskVine factory process")

try:
Expand Down

0 comments on commit f601758

Please sign in to comment.