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

Method start

packages/queue/src/helpers/keep-alive.ts:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 }
11
12 start() {
13 this.intervalID = setInterval(async () => {
14 await this.helpers.withPgClient((pgClient) =>
15 pgClient.query(
16 `UPDATE graphile_worker.jobs SET locked_at=$1 WHERE id=$2`,
17 [new Date(), this.helpers.job.id]
18 )
19 );
20 this.helpers.logger.info('keep alive');
21 }, this.interval);
22 }
23
24 end() {
25 clearInterval(this.intervalID);

Callers 12

typesenseSetupFunction · 0.95
typesenseRefreshApiKeysFunction · 0.95
sitemapFunction · 0.95
slugifyFunction · 0.95
syncFunction · 0.95
updateMessagesCountFunction · 0.95

Calls 1

infoMethod · 0.65

Tested by

no test coverage detected