Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

PR cleanup

elijahbenizzyc14ce718a425
diff --git a/burr/cli/__main__.py b/burr/cli/__main__.py
index 2f952278..8607aa96 100644
--- a/burr/cli/__main__.py
+++ b/burr/cli/__main__.py
@@ -28,6 +28,7 @@ except ImportError as e:
)
+# Quick trick to use loguru for everything so it's all the same color
class InterceptHandler(logging.Handler):
def emit(self, record):
# Get corresponding Loguru level if it exists
diff --git a/burr/cli/demo_data.py b/burr/cli/demo_data.py
index 25300931..1d15f278 100644
--- a/burr/cli/demo_data.py
+++ b/burr/cli/demo_data.py
@@ -130,12 +130,6 @@ def generate_counter_data(
.with_entrypoint("counter")
.build()
)
- # app = counter_application.application(
- # count_up_to=count,
- # app_id=f"count-to-{count}",
- # storage_dir=data_dir,
- # partition_key=f"user_{i}",
- # )
app.run(halt_after=["result"])
diff --git a/burr/tracking/server/run.py b/burr/tracking/server/run.py
index b289b099..51d3a940 100644
--- a/burr/tracking/server/run.py
+++ b/burr/tracking/server/run.py
@@ -23,9 +23,6 @@ try:
from starlette.templating import Jinja2Templates
from burr.tracking.server import schema
-
- # from burr.tracking.server import backend as backend_module
- # from burr.tracking.server.s3 import backend as s3_backend
from burr.tracking.server.schema import ApplicationLogs, BackendSpec, IndexingJob
# dynamic importing due to the dashes (which make reading the examples on github easier)
@@ -122,13 +119,6 @@ app_spec = get_app_spec()
logger = logging.getLogger(__name__)
-# @repeat_every(
-# seconds=update_interval if update_interval is not None else float("inf"),
-# wait_first=True,
-# logger=logger,
-# )
-
-
if app_spec.indexing:
update_interval = backend.update_interval_milliseconds() / 1000 if app_spec.indexing else None
sync_index = repeat_every(