Skip to content

Commit

Permalink
deps: Extract the queue implementation into its own repos
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Oct 27, 2024
1 parent eb7da99 commit a746e9a
Show file tree
Hide file tree
Showing 23 changed files with 65 additions and 1,336 deletions.
2 changes: 1 addition & 1 deletion apps/workers/crawlerWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { eq } from "drizzle-orm";
import { execa } from "execa";
import { isShuttingDown } from "exit";
import { JSDOM } from "jsdom";
import { DequeuedJob, Runner } from "liteque";
import metascraper from "metascraper";
import metascraperAmazon from "metascraper-amazon";
import metascraperDescription from "metascraper-description";
Expand All @@ -32,7 +33,6 @@ import {
bookmarkLinks,
bookmarks,
} from "@hoarder/db/schema";
import { DequeuedJob, Runner } from "@hoarder/queue";
import {
ASSET_TYPES,
deleteAsset,
Expand Down
2 changes: 1 addition & 1 deletion apps/workers/openaiWorker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { and, Column, eq, inArray, sql } from "drizzle-orm";
import { DequeuedJob, Runner } from "liteque";
import { z } from "zod";

import type { InferenceClient } from "@hoarder/shared/inference";
Expand All @@ -11,7 +12,6 @@ import {
customPrompts,
tagsOnBookmarks,
} from "@hoarder/db/schema";
import { DequeuedJob, Runner } from "@hoarder/queue";
import { readAsset } from "@hoarder/shared/assetdb";
import serverConfig from "@hoarder/shared/config";
import { InferenceClientFactory } from "@hoarder/shared/inference";
Expand Down
2 changes: 1 addition & 1 deletion apps/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"private": true,
"dependencies": {
"@hoarder/db": "workspace:^0.1.0",
"@hoarder/queue": "workspace:^0.1.0",
"@hoarder/shared": "workspace:^0.1.0",
"@hoarder/tsconfig": "workspace:^0.1.0",
"@mozilla/readability": "^0.5.0",
Expand All @@ -16,6 +15,7 @@
"drizzle-orm": "^0.33.0",
"execa": "9.3.1",
"jsdom": "^24.0.0",
"liteque": "^0.1.3",
"metascraper": "^5.45.24",
"metascraper-amazon": "^5.45.22",
"metascraper-description": "^5.45.22",
Expand Down
2 changes: 1 addition & 1 deletion apps/workers/searchWorker.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { eq } from "drizzle-orm";
import { DequeuedJob, Runner } from "liteque";

import type { ZSearchIndexingRequest } from "@hoarder/shared/queues";
import { db } from "@hoarder/db";
import { bookmarks } from "@hoarder/db/schema";
import { DequeuedJob, Runner } from "@hoarder/queue";
import logger from "@hoarder/shared/logger";
import {
SearchIndexingQueue,
Expand Down
2 changes: 1 addition & 1 deletion apps/workers/tidyAssetsWorker.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { eq } from "drizzle-orm";
import { DequeuedJob, Runner } from "liteque";

import { db } from "@hoarder/db";
import { assets } from "@hoarder/db/schema";
import { DequeuedJob, Runner } from "@hoarder/queue";
import { deleteAsset, getAllAssets } from "@hoarder/shared/assetdb";
import logger from "@hoarder/shared/logger";
import {
Expand Down
19 changes: 0 additions & 19 deletions packages/queue/db.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/queue/drizzle.config.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/queue/drizzle/0000_wonderful_talisman.sql

This file was deleted.

130 changes: 0 additions & 130 deletions packages/queue/drizzle/meta/0000_snapshot.json

This file was deleted.

13 changes: 0 additions & 13 deletions packages/queue/drizzle/meta/_journal.json

This file was deleted.

6 changes: 0 additions & 6 deletions packages/queue/index.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/queue/options.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/queue/package.json

This file was deleted.

Loading

0 comments on commit a746e9a

Please sign in to comment.