mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-05-17 10:41:50 +02:00
Compare commits
8 commits
0204a01e66
...
3d209fed22
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3d209fed22 | ||
![]() |
acd90133bd | ||
![]() |
be90aa095a | ||
![]() |
06f8310505 | ||
![]() |
fe89d62e88 | ||
![]() |
1e7672abca | ||
![]() |
2ef999fa63 | ||
![]() |
9c8be94c20 |
3 changed files with 8 additions and 2 deletions
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## 0.7.0
|
||||||
|
|
||||||
|
Date: 2025-01-14
|
||||||
|
|
||||||
- ✨ — IPv4/IPv6 choice for checks, and choice for a dual-stack check (#69)
|
- ✨ — IPv4/IPv6 choice for checks, and choice for a dual-stack check (#69)
|
||||||
- ⚡ — Mutualize check requests (#68)
|
- ⚡ — Mutualize check requests (#68)
|
||||||
- ✨ — Ability to delay notification after X failures (#71)
|
- ✨ — Ability to delay notification after X failures (#71)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
VERSION = "0.6.1"
|
VERSION = "0.7.0"
|
||||||
|
|
|
@ -164,6 +164,7 @@ class ArgosAgent: # pylint: disable-msg=too-many-instance-attributes
|
||||||
logger.info("Received %i tasks from the server", len(data))
|
logger.info("Received %i tasks from the server", len(data))
|
||||||
|
|
||||||
req_groups = {}
|
req_groups = {}
|
||||||
|
_tasks = []
|
||||||
for _task in data:
|
for _task in data:
|
||||||
task = Task(**_task)
|
task = Task(**_task)
|
||||||
|
|
||||||
|
@ -187,6 +188,7 @@ class ArgosAgent: # pylint: disable-msg=too-many-instance-attributes
|
||||||
"method": task.method,
|
"method": task.method,
|
||||||
"request_data": task.request_data,
|
"request_data": task.request_data,
|
||||||
}
|
}
|
||||||
|
_tasks.append(_task)
|
||||||
|
|
||||||
requests = []
|
requests = []
|
||||||
for group, details in req_groups.items():
|
for group, details in req_groups.items():
|
||||||
|
@ -196,7 +198,7 @@ class ArgosAgent: # pylint: disable-msg=too-many-instance-attributes
|
||||||
await asyncio.gather(*requests)
|
await asyncio.gather(*requests)
|
||||||
|
|
||||||
tasks = []
|
tasks = []
|
||||||
for task in response.json():
|
for task in _tasks:
|
||||||
tasks.append(self._complete_task(task))
|
tasks.append(self._complete_task(task))
|
||||||
|
|
||||||
if tasks:
|
if tasks:
|
||||||
|
|
Loading…
Reference in a new issue