-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Migrate tenant upgrades to data plane #3051
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
4eedac7
to
20d2301
Compare
from danswer.db.users import get_user_by_email | ||
from danswer.utils.logger import setup_logger | ||
from danswer.utils.telemetry import optional_telemetry | ||
from danswer.utils.telemetry import RecordType | ||
from danswer.utils.variable_functionality import fetch_versioned_implementation | ||
from ee.danswer.server.tenants.provisioning import get_or_create_tenant_id |
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.
No ee imports outside of ee folder
@@ -359,7 +359,7 @@ def stream_generator() -> Generator[str, None, None]: | |||
yield json.dumps(packet) if isinstance(packet, dict) else packet | |||
|
|||
except Exception as e: | |||
logger.exception(f"Error in chat message streaming: {e}") | |||
logger.exception("Error in chat message streaming") |
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.
Why are we changing this?
except Exception as e: | ||
logger.exception(f"Unexpected error updating tenant tasks: {str(e)}") | ||
except (AttributeError, KeyError): | ||
logger.exception("Failed to process task configuration") |
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.
Why do we not want these?
cbf577c
to
2ef3793
Compare
Description
Previously, we had a separate url/web server for users to provision tenants. This merges the functionality into the data plane
General approach