MCPcopy
hub / github.com/Zie619/n8n-workflows / run_indexing

Function run_indexing

api_server.py:605–610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

603 raise HTTPException(status_code=401, detail="Invalid authentication token")
604
605 def run_indexing():
606 try:
607 db.index_all_workflows(force_reindex=force)
608 print(f"Reindexing completed successfully (requested by {client_ip})")
609 except Exception as e:
610 print(f"Error during reindexing: {e}")
611
612 background_tasks.add_task(run_indexing)
613 return {"message": "Reindexing started in background", "requested_by": client_ip}

Callers

nothing calls this directly

Calls 1

index_all_workflowsMethod · 0.80

Tested by

no test coverage detected