various multi tenant improvements (#2803)

* various multi tenant improvements

* nit

* ensure consistent db session operations

* minor robustification
This commit is contained in:
pablodanswer
2024-10-15 13:10:57 -07:00
committed by GitHub
parent 0e6c2f0b51
commit bfe963988e
15 changed files with 84 additions and 34 deletions

View File

@ -206,6 +206,8 @@ def _delete_connector(cc_pair_id: int, db_session: Session) -> None:
logger.notice(f"Deleting file {file_name}")
file_store.delete_file(file_name)
db_session.commit()
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Delete a connector by its ID")