Skip to content

Commit

Permalink
Fix: [SymonClient] Report worker path (#1168)
Browse files Browse the repository at this point in the history
* Fix: Include the workers when npm pack

* Fix: [SymonClient] Report worker path
  • Loading branch information
dennypradipta authored Nov 8, 2023
1 parent 4381bb0 commit a9316c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/symon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { ExponentialBackoff, handleAll, retry } from 'cockatiel'
import { EventEmitter } from 'events'
import mac from 'macaddress'
import { hostname } from 'os'
import path from 'path'
import Piscina from 'piscina'

import { updateConfig } from '../components/config'
Expand Down Expand Up @@ -158,7 +159,8 @@ class SymonClient {

private worker = new Piscina.Piscina({
concurrentTasksPerWorker: 1,
filename: `${process.cwd()}/lib/workers/report-to-symon.js`,
// eslint-disable-next-line unicorn/prefer-module
filename: path.join(__dirname, '../../lib/workers/report-to-symon.js'),
idleTimeout: this.reportProbesInterval,
maxQueue: 1,
})
Expand Down

0 comments on commit a9316c6

Please sign in to comment.