-
Notifications
You must be signed in to change notification settings - Fork 116
Templates: Durable prose-recovery + always-rotate (companion to ai-bridge#425) #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
abeef28
83a8e7e
fa550af
911f18b
399ffde
04e6b1b
948f7b4
cea0508
cafd07d
4cbc677
a9c94c4
7f15d2f
61dcfc0
75dae5d
47a063f
c27c016
bfd8f6e
931ab0f
412e14f
89f096b
b17eec8
20f87cb
0374ff4
e9b4064
337c39f
d144ec0
467d2ed
695dcfb
25202c7
a912d8d
4421511
7683079
5f3c507
0ddbd60
24140b3
db9fb45
9f7e95d
ec73bc9
0517e23
0d30827
140399b
31d87d6
1aee3af
dfa14ce
018492f
9d4af20
2a5c1cf
8ecf2b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,16 @@ def transform_stream_event(self, event, response_id): | |
| poll_interval_seconds=float(os.getenv("POLL_INTERVAL_SECONDS", "1.0")), | ||
| ) | ||
|
|
||
| log_level = os.getenv("LOG_LEVEL", "INFO") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels like a very messy way to propogate logs, can we see if its possible to clean this up? and change the comments to be bridge specific, not durable specific since all bridge logs will be shown with this. |
||
| _lvl = getattr(logging, log_level.upper(), logging.INFO) | ||
| logging.getLogger("agent_server").setLevel(_lvl) | ||
| # Surface [durable] lifecycle logs from LongRunningAgentServer into apps logs. | ||
| logging.getLogger("databricks_ai_bridge").setLevel(_lvl) | ||
| if not logging.getLogger().handlers: | ||
| logging.basicConfig(level=_lvl, format="%(asctime)s %(levelname)s %(name)s: %(message)s") | ||
| else: | ||
| logging.getLogger().setLevel(_lvl) | ||
|
|
||
| # Define the app as a module level variable to enable multiple workers | ||
| app = agent_server.app # noqa: F841 | ||
| setup_mlflow_git_based_version_tracking() | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this logic to a function that is equivalent to the
deduplicate_inputin the openai template? Location and usage wise.