Skip to content

Commit

Permalink
feat: add standby port to configuration (#310)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Adámek <banan23@gmail.com>
  • Loading branch information
jirimoravcik and B4nan committed Jul 4, 2024
1 parent 17dface commit cc26098
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"lint:fix": "eslint \"packages/**/src/**/*\" test --fix"
},
"devDependencies": {
"@apify/consts": "^2.20.0",
"@apify/consts": "^2.29.0",
"@apify/eslint-config-ts": "^0.4.1",
"@apify/input_secrets": "^1.1.32",
"@apify/tsconfig": "^0.1.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/apify/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export interface ConfigurationOptions extends CoreConfigurationOptions {
* `proxyStatusUrl` | `APIFY_PROXY_STATUS_URL` | `'http://proxy.apify.com'`
* `userId` | `APIFY_USER_ID` | -
* `xvfb` | `APIFY_XVFB` | -
* `standbyPort` | `ACTOR_STANDBY_PORT` | `4322`
* `chromeExecutablePath` | `APIFY_CHROME_EXECUTABLE_PATH` | -
* `defaultBrowserPath` | `APIFY_DEFAULT_BROWSER_PATH` | -
*/
Expand Down Expand Up @@ -148,6 +149,7 @@ export class Configuration extends CoreConfiguration {
ACTOR_INPUT_KEY: 'inputKey',
ACTOR_MEMORY_MBYTES: 'memoryMbytes',
ACTOR_RUN_ID: 'actorRunId',
ACTOR_STANDBY_PORT: 'standbyPort',
ACTOR_TASK_ID: 'actorTaskId',
ACTOR_WEB_SERVER_PORT: 'containerPort',
ACTOR_WEB_SERVER_URL: 'containerUrl',
Expand All @@ -169,6 +171,7 @@ export class Configuration extends CoreConfiguration {
proxyPort: +LOCAL_APIFY_ENV_VARS[APIFY_ENV_VARS.PROXY_PORT],
containerPort: +LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.WEB_SERVER_PORT],
containerUrl: LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.WEB_SERVER_URL],
standbyPort: +LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.STANDBY_PORT],
metamorphAfterSleepMillis: 300e3,
persistStateIntervalMillis: 60e3, // This value is mentioned in jsdoc in `events.js`, if you update it here, update it there too.
};
Expand Down

0 comments on commit cc26098

Please sign in to comment.