Skip to content

Commit

Permalink
feat(agent): accept milisecond delay
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Aug 14, 2024
1 parent ba90f6b commit 17a1af2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- RESTKNOT_SOCKET_RETRY=10

# Wait for n seconds before firing new command to knotd
- RESTKNOT_COMMAND_DELAY=5
- RESTKNOT_COMMAND_DELAY=5.0

# using 127.0.0.1 or localhost won't make it work
# set it to RESTKNOT API IP
Expand Down
2 changes: 1 addition & 1 deletion agent/dnsagent/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def consume():
topic = os.environ.get("RESTKNOT_KAFKA_TOPIC")
group_id = os.environ.get("RESTKNOT_KAFKA_GROUP_ID")
agent_type = os.environ.get("RESTKNOT_AGENT_TYPE")
command_delay = int(os.environ.get("RESTKNOT_COMMAND_DELAY", 5))
command_delay = float(os.environ.get("RESTKNOT_COMMAND_DELAY", 5.0))

conf = {
"bootstrap.servers": brokers,
Expand Down

0 comments on commit 17a1af2

Please sign in to comment.