Merge remote-tracking branch 'origin/dev' into two_edges

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-20 13:41:00 -03:00
commit 47c0522c7b
7 changed files with 18 additions and 10 deletions

View file

@ -167,7 +167,7 @@ def run(
else:
# Run using gunicorn on Linux
process = run_on_mac_or_linux(host, port, log_level, options, app)
if open_browser:
if open_browser and not backend_only:
click.launch(f"http://{host}:{port}")
if process:
process.join()

View file

@ -897,7 +897,7 @@ class Graph:
next_runnable_vertices = await self._execute_tasks(tasks, lock=lock)
except Exception as e:
logger.error(f"Error executing tasks in layer {layer_index}: {e}")
break
raise e
if not next_runnable_vertices:
break
to_process.extend(next_runnable_vertices)

View file

@ -510,9 +510,9 @@ def load_flows_from_directory():
if existing:
logger.info(f"Updating existing flow: {flow_id} with endpoint name {flow_endpoint_name}")
for key, value in flow.items():
if key == "last_tested_version":
continue
setattr(existing, key, value)
if hasattr(existing, key):
# flow dict from json and db representation are not 100% the same
setattr(existing, key, value)
existing.updated_at = datetime.utcnow()
existing.user_id = user_id
session.add(existing)