mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
🔊 — Improve check agent log
This commit is contained in:
parent
33fd5441e1
commit
dbe05178b8
2 changed files with 6 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
- 🚸 — Use ReconnectLDAPObject
|
||||
- ⏰ — Set recurring task to every minute
|
||||
- 🔊 — Improve check agent log
|
||||
|
||||
## 0.9.0
|
||||
|
||||
|
|
|
@ -139,7 +139,11 @@ async def recurring_tasks() -> None:
|
|||
agents = await queries.get_recent_agents_count(db, config.time_without_agent)
|
||||
if agents == 0:
|
||||
no_agent_alert(app.state.config)
|
||||
logger.info("Agent presence checked")
|
||||
logger.info(
|
||||
"Agent presence checked (%i agent(s) in the last %i minute(s))",
|
||||
agents,
|
||||
config.time_without_agent,
|
||||
)
|
||||
|
||||
removed = await queries.remove_old_results(db, config.max_results_age)
|
||||
logger.info("%i result(s) removed", removed)
|
||||
|
|
Loading…
Reference in a new issue