appback-remoteagent 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +1 -0
- package/dist/config.js +1 -1
- package/docs/BOT_POLLING_POLICY.md +1 -0
- package/package.json +1 -1
package/.env.example
CHANGED
|
@@ -7,6 +7,7 @@ TELEGRAM_EMPTY_RESPONSE_RETRIES=1
|
|
|
7
7
|
TELEGRAM_RETRYABLE_ERROR_RETRIES=2
|
|
8
8
|
TELEGRAM_RETRYABLE_ERROR_DELAY_MS=5000
|
|
9
9
|
TELEGRAM_UNTAGGED_INTENT_RETRIES=2
|
|
10
|
+
TELEGRAM_POLLING_MAX_CONCURRENCY=8
|
|
10
11
|
TELEGRAM_SCHEDULER_TICK_MS=1000
|
|
11
12
|
TELEGRAM_TIERED_POLLING_MIN_BOTS=5
|
|
12
13
|
TELEGRAM_ACTIVE_POLL_INTERVAL_MS=3000
|
package/dist/config.js
CHANGED
|
@@ -133,7 +133,7 @@ export const config = {
|
|
|
133
133
|
telegramCommandMenuEnabled: readBoolean("TELEGRAM_COMMAND_MENU_ENABLED", true),
|
|
134
134
|
telegramPollingBackoffMinMs: readTimeout("TELEGRAM_POLLING_BACKOFF_MIN_MS", 60_000),
|
|
135
135
|
telegramPollingBackoffMaxMs: readTimeout("TELEGRAM_POLLING_BACKOFF_MAX_MS", 900_000),
|
|
136
|
-
telegramPollingMaxConcurrency: readTimeout("TELEGRAM_POLLING_MAX_CONCURRENCY",
|
|
136
|
+
telegramPollingMaxConcurrency: readTimeout("TELEGRAM_POLLING_MAX_CONCURRENCY", 8),
|
|
137
137
|
telegramSchedulerTickMs: readTimeout("TELEGRAM_SCHEDULER_TICK_MS", 1000),
|
|
138
138
|
telegramTieredPollingMinBots: readTimeout("TELEGRAM_TIERED_POLLING_MIN_BOTS", 5),
|
|
139
139
|
telegramActivePollIntervalMs: readTimeout("TELEGRAM_ACTIVE_POLL_INTERVAL_MS", 3000),
|
|
@@ -30,3 +30,4 @@ RemoteAgent no longer uses deep sleep, wake, or a special main bot for polling c
|
|
|
30
30
|
- `/bot doctor` removes bots that Telegram reports as permanently dead.
|
|
31
31
|
- `/bot remove <username|id>` removes a configured bot from the runtime.
|
|
32
32
|
- Polling state is stored by Telegram bot id, not by display order.
|
|
33
|
+
- The default polling concurrency is 8 because Telegram long polling can hold each request for up to 30 seconds. Lower values can make later bots look unresponsive when many bots are configured.
|