Skip to content

Commit

Permalink
Revert "add log.error() calls to wfi and neo4j_driver files"
Browse files Browse the repository at this point in the history
  • Loading branch information
pagrubel authored Mar 20, 2024
1 parent 63ea393 commit 62b01de
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions beeflow/common/gdb/gdb_driver.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""Abstract base class for the handling of workflow DAGs."""

from abc import ABC, abstractmethod
from beeflow.common import log as bee_logging

log = bee_logging.setup(__name__)


class GraphDatabaseDriver(ABC):
Expand Down
3 changes: 0 additions & 3 deletions beeflow/common/gdb/neo4j_cypher.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""Neo4j/Cypher transaction functions used by the Neo4jDriver class."""

from re import fullmatch
from beeflow.common import log as bee_logging

log = bee_logging.setup(__name__)


def create_workflow_node(tx, workflow):
Expand Down
4 changes: 0 additions & 4 deletions beeflow/common/gdb/neo4j_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
from beeflow.common.gdb import neo4j_cypher as tx
from beeflow.common.wf_data import (Workflow, Task, Requirement, Hint,
InputParameter, OutputParameter, StepInput, StepOutput)
from beeflow.common import log as bee_logging

log = bee_logging.setup(__name__)

# Default Neo4j authentication
# We may want to instead get these from a config at some point
Expand Down Expand Up @@ -54,7 +51,6 @@ def __init__(self, user=DEFAULT_USER, password=DEFAULT_PASSWORD, **kwargs):
# Connect to the Neo4j database using the Neo4j proprietary driver
self._driver = Neo4jDatabase.driver(uri, auth=(user, password))
except ServiceUnavailable as sue:
log.error("Neo4j database is unavailable")
raise Neo4JNotRunning("Neo4j database is unavailable") from sue

def initialize_workflow(self, workflow):
Expand Down
5 changes: 0 additions & 5 deletions beeflow/common/wf_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"""

import re
from beeflow.common import log as bee_logging

log = bee_logging.setup(__name__)


class WorkflowInterface:
Expand Down Expand Up @@ -36,7 +33,6 @@ def initialize_workflow(self, workflow):
:type workflow: Workflow
"""
if self.workflow_loaded():
log.error("attempt to re-initialize existing workflow")
raise RuntimeError("attempt to re-initialize existing workflow")
if workflow.requirements is None:
workflow.requirements = []
Expand Down Expand Up @@ -111,7 +107,6 @@ def restart_task(self, task, checkpoint_file):
self.set_workflow_state("FAILED")
return None
else:
log.error("invalid task for checkpoint restart")
raise ValueError("invalid task for checkpoint restart")

new_task = task.copy(new_id=True)
Expand Down

0 comments on commit 62b01de

Please sign in to comment.