From 4c589d4c89f0fab97a14f02095e75335f08cc38e Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Fri, 19 Apr 2024 22:32:57 +0100
Subject: feature: Allow recrawling bookmarks without running inference jobs

---
 apps/web/app/dashboard/admin/page.tsx | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

(limited to 'apps/web/app/dashboard/admin/page.tsx')

diff --git a/apps/web/app/dashboard/admin/page.tsx b/apps/web/app/dashboard/admin/page.tsx
index 65ac44e1..43c48b44 100644
--- a/apps/web/app/dashboard/admin/page.tsx
+++ b/apps/web/app/dashboard/admin/page.tsx
@@ -103,7 +103,9 @@ function ActionsSection() {
         className="lg:w-1/2"
         variant="destructive"
         loading={isRecrawlPending}
-        onClick={() => recrawlLinks({ crawlStatus: "failure" })}
+        onClick={() =>
+          recrawlLinks({ crawlStatus: "failure", runInference: true })
+        }
       >
         Recrawl Failed Links Only
       </ActionButton>
@@ -111,10 +113,20 @@ function ActionsSection() {
         className="lg:w-1/2"
         variant="destructive"
         loading={isRecrawlPending}
-        onClick={() => recrawlLinks({ crawlStatus: "all" })}
+        onClick={() => recrawlLinks({ crawlStatus: "all", runInference: true })}
       >
         Recrawl All Links
       </ActionButton>
+      <ActionButton
+        className="lg:w-1/2"
+        variant="destructive"
+        loading={isRecrawlPending}
+        onClick={() =>
+          recrawlLinks({ crawlStatus: "all", runInference: false })
+        }
+      >
+        Recrawl All Links (Without Inference)
+      </ActionButton>
       <ActionButton
         className="lg:w-1/2"
         variant="destructive"
-- 
cgit v1.2.3-70-g09d2

