1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const os_1 = require("os");
|
4 | var State;
|
5 | (function (State) {
|
6 | State[State["pending"] = 1] = "pending";
|
7 | State[State["complete"] = 2] = "complete";
|
8 | State[State["stopped"] = 3] = "stopped";
|
9 | })(State = exports.State || (exports.State = {}));
|
10 |
|
11 |
|
12 | exports.PANDORA_GLOBAL_CONFIG = 'PANDORA_CONFIG';
|
13 | exports.PANDORA_CWD = 'PANDORA_CWD';
|
14 | exports.PANDORA_HOME = 'PANDORA_HOME';
|
15 |
|
16 |
|
17 | exports.SEND_DAEMON_MESSAGE = 'send_daemon_message';
|
18 | exports.DAEMON_READY = 'daemon_ready';
|
19 | exports.DAEMON_MESSENGER = 'pandora_daemon_messenger';
|
20 |
|
21 |
|
22 | exports.PROCFILE_NAMES = ['procfile.js', 'procfile.ts'];
|
23 | exports.defaultWorkerCount = process.env.DEFAULT_WORKER_COUNT ? parseInt(process.env.DEFAULT_WORKER_COUNT) : os_1.cpus().length;
|
24 |
|
25 |
|
26 | exports.PROCESS_READY = 'process_ready';
|
27 | exports.PROCESS_ERROR = 'process_error';
|
28 | exports.WORKER_READY = 'worker_ready';
|
29 | exports.WORKER_EXIT = 'worker_exit';
|
30 | exports.SHUTDOWN = 'shutdown';
|
31 | exports.FINISH_SHUTDOWN = 'finish_shutdown';
|
32 | exports.SHUTDOWN_TIMEOUT = 5 * 1000;
|
33 | exports.RELOAD = 'reload';
|
34 | exports.RELOAD_SUCCESS = 'reload_success';
|
35 | exports.RELOAD_ERROR = 'reload_error';
|
36 | exports.RELOAD_TIMEOUT = 10 * 1000;
|
37 |
|
38 |
|
39 | exports.SERVICE_PREFIX_IN_HUB = '';
|
40 | exports.SERVICE_RESERVE_NAME = ['all'];
|
41 |
|
42 |
|
43 | exports.PANDORA_PROCESS = 'PANDORA_PROCESS_REPRESENTATION';
|
44 |
|
\ | No newline at end of file |