mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
eddn: Use a shorter, 10 second, delay at startup for first queue check
This commit is contained in:
parent
3d9bb64330
commit
95fa9d577c
@ -175,7 +175,7 @@ class EDDNSender:
|
|||||||
|
|
||||||
self.queue_processing = Lock()
|
self.queue_processing = Lock()
|
||||||
# Initiate retry/send-now timer
|
# Initiate retry/send-now timer
|
||||||
self.eddn.parent.after(self.eddn.REPLAY_PERIOD, self.queue_check_and_send, True)
|
self.eddn.parent.after(self.eddn.REPLAY_STARTUP_DELAY, self.queue_check_and_send, True)
|
||||||
|
|
||||||
def sqlite_queue_v1(self) -> sqlite3.Connection:
|
def sqlite_queue_v1(self) -> sqlite3.Connection:
|
||||||
"""
|
"""
|
||||||
@ -552,6 +552,7 @@ class EDDN:
|
|||||||
DEFAULT_URL = f'http://{edmc_data.DEBUG_WEBSERVER_HOST}:{edmc_data.DEBUG_WEBSERVER_PORT}/eddn'
|
DEFAULT_URL = f'http://{edmc_data.DEBUG_WEBSERVER_HOST}:{edmc_data.DEBUG_WEBSERVER_PORT}/eddn'
|
||||||
|
|
||||||
# FIXME: Change back to `300_000`
|
# FIXME: Change back to `300_000`
|
||||||
|
REPLAY_STARTUP_DELAY = 10_000 # Delay during startup before checking queue [milliseconds]
|
||||||
REPLAY_PERIOD = 300_000 # How often to try (re-)sending the queue, [milliseconds]
|
REPLAY_PERIOD = 300_000 # How often to try (re-)sending the queue, [milliseconds]
|
||||||
REPLAY_DELAY = 400 # Roughly two messages per second, accounting for send delays [milliseconds]
|
REPLAY_DELAY = 400 # Roughly two messages per second, accounting for send delays [milliseconds]
|
||||||
REPLAYFLUSH = 20 # Update log on disk roughly every 10 seconds
|
REPLAYFLUSH = 20 # Update log on disk roughly every 10 seconds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user