mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-23 05:12:03 +00:00
wip: trpc
This commit is contained in:
9
apps/server/src/jobs/worker.ts
Normal file
9
apps/server/src/jobs/worker.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { parentPort } from 'node:worker_threads';
|
||||
import process from 'node:process';
|
||||
|
||||
console.log('Hello TypeScript!');
|
||||
|
||||
// signal to parent that the job is done
|
||||
if (parentPort) parentPort.postMessage('done');
|
||||
// eslint-disable-next-line unicorn/no-process-exit
|
||||
else process.exit(0);
|
||||
Reference in New Issue
Block a user