Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @midwayjs/process-agent

References

Configuration

Configuration:

RunInPrimary

RunInPrimary:

Variables

Let bInit

bInit: boolean = false

Let gfp

gfp: any = null

Const lockFile

lockFile: string = path.join(os.tmpdir(),`midway-master-${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}-${ppid}.lock`)

Const now

now: Date = new Date()

Const ppid

ppid: number = process.ppid

Functions

RunInPrimary

  • RunInPrimary(): (Anonymous function)

closeLock

  • closeLock(): void

isPrimary

  • isPrimary(): boolean

Generated using TypeDoc