mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-18 19:43:26 +02:00
Remove Perm Sync Script Dev (#2712)
This commit is contained in:
@@ -122,26 +122,6 @@ def run_jobs(exclude_indexing: bool) -> None:
|
|||||||
|
|
||||||
indexing_thread.start()
|
indexing_thread.start()
|
||||||
indexing_thread.join()
|
indexing_thread.join()
|
||||||
try:
|
|
||||||
update_env = os.environ.copy()
|
|
||||||
update_env["PYTHONPATH"] = "."
|
|
||||||
cmd_perm_sync = ["python", "ee/danswer/background/permission_sync.py"]
|
|
||||||
|
|
||||||
indexing_process = subprocess.Popen(
|
|
||||||
cmd_perm_sync,
|
|
||||||
env=update_env,
|
|
||||||
stdout=subprocess.PIPE,
|
|
||||||
stderr=subprocess.STDOUT,
|
|
||||||
text=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
perm_sync_thread = threading.Thread(
|
|
||||||
target=monitor_process, args=("INDEXING", indexing_process)
|
|
||||||
)
|
|
||||||
perm_sync_thread.start()
|
|
||||||
perm_sync_thread.join()
|
|
||||||
except Exception:
|
|
||||||
pass
|
|
||||||
|
|
||||||
worker_primary_thread.join()
|
worker_primary_thread.join()
|
||||||
worker_light_thread.join()
|
worker_light_thread.join()
|
||||||
|
Reference in New Issue
Block a user