MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / sync

Function sync

packages/queue/src/tasks/sync.ts:6–20  ·  view source on GitHub ↗
(payload: any, helpers: JobHelpers)

Source from the content-addressed store, hash-verified

4import { Logger } from '../helpers/logger';
5
6export const sync = async (payload: any, helpers: JobHelpers) => {
7 const logger = new Logger(helpers.logger);
8 logger.info(payload);
9
10 const keepAlive = new KeepAlive(helpers);
11 keepAlive.start();
12
13 const fullSync = helpers.job.attempts === 1;
14
15 try {
16 await syncJob({ ...payload, fullSync, logger });
17 } finally {
18 keepAlive.end();
19 }
20};

Callers

nothing calls this directly

Calls 4

infoMethod · 0.95
startMethod · 0.95
endMethod · 0.95
syncJobFunction · 0.90

Tested by

no test coverage detected