The stat collector port is read from an env variable in the server, but in the client it is defined as a constant.
|
// TODO |
|
// It is better to find an available/free port automatically and use it. |
|
// Then the post script (`post.ts`) needs to know the selected port. |
|
const SERVER_PORT: number = |
|
parseInt(process.env.WORKFLOW_TELEMETRY_SERVER_PORT || '') || 7777 |
|
const STAT_SERVER_PORT = 7777 |
This conflicts with one of the ports my application is already using. If both places read from a environment variable I could change this to a different port. I could change my application's port but it would be better if I could configure this action's port.
The stat collector port is read from an env variable in the server, but in the client it is defined as a constant.
workflow-telemetry-action/src/statCollectorWorker.ts
Lines 15 to 19 in f974e0c
workflow-telemetry-action/src/statCollector.ts
Line 25 in f974e0c
This conflicts with one of the ports my application is already using. If both places read from a environment variable I could change this to a different port. I could change my application's port but it would be better if I could configure this action's port.