Skip to content

Commit

Permalink
significantly increase timeouts so we can catch up busted lists
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerFisher committed Dec 31, 2024
1 parent d6b5b88 commit e78ff0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/utils/bluesky.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export const getBlueskyList = async (
const postDate = AppBskyFeedDefs.isReasonRepost(item.reason)
? new Date(item.reason.indexedAt)
: new Date(item.post.indexedAt);
//@ts-expect-error
if (postDate <= checkDate && item.post.cid !== list[0].post.cid) {
reachedEnd = true;
break;
Expand Down Expand Up @@ -494,7 +493,7 @@ export const getLinksFromBluesky = async (
`List timeout: ${list.name}, ${list.uri} for ${account.handle}`,
),
),
25000,
60000,
),
),
]).catch((error) => {
Expand Down
4 changes: 2 additions & 2 deletions workers/process-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ async function processQueue() {
try {
const timeoutPromise = new Promise((_, reject) =>
setTimeout(() => {
reject(new Error("Job timed out after 60 seconds"));
}, 60000),
reject(new Error("Job timed out after 120 seconds"));
}, 120000),
);
const jobPromise = (async () => {
const links = await fetchLinks(job.userId);
Expand Down

0 comments on commit e78ff0d

Please sign in to comment.