mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 03:48:09 +00:00
Remove signalr from endpoints (#1102)
This is a follow-on PR from #1100
This commit is contained in:
@ -9,7 +9,6 @@ import azure.functions as func
|
||||
from onefuzztypes.enums import NodeState, PoolState
|
||||
|
||||
from ..onefuzzlib.autoscale import autoscale_pool
|
||||
from ..onefuzzlib.events import get_events
|
||||
from ..onefuzzlib.orm import process_state_updates
|
||||
from ..onefuzzlib.workers.nodes import Node
|
||||
from ..onefuzzlib.workers.pools import Pool
|
||||
@ -31,7 +30,7 @@ def process_scaleset(scaleset: Scaleset) -> None:
|
||||
process_state_updates(scaleset)
|
||||
|
||||
|
||||
def main(mytimer: func.TimerRequest, dashboard: func.Out[str]) -> None: # noqa: F841
|
||||
def main(mytimer: func.TimerRequest) -> None: # noqa: F841
|
||||
# NOTE: Update pools first, such that scalesets impacted by pool updates
|
||||
# (such as shutdown or resize) happen during this iteration `timer_worker`
|
||||
# rather than the following iteration.
|
||||
@ -61,7 +60,3 @@ def main(mytimer: func.TimerRequest, dashboard: func.Out[str]) -> None: # noqa:
|
||||
scalesets = Scaleset.search()
|
||||
for scaleset in sorted(scalesets, key=lambda x: x.scaleset_id):
|
||||
process_scaleset(scaleset)
|
||||
|
||||
events = get_events()
|
||||
if events:
|
||||
dashboard.set(events)
|
||||
|
@ -5,12 +5,6 @@
|
||||
"name": "mytimer",
|
||||
"schedule": "00:01:30",
|
||||
"type": "timerTrigger"
|
||||
},
|
||||
{
|
||||
"type": "signalR",
|
||||
"direction": "out",
|
||||
"name": "dashboard",
|
||||
"hubName": "dashboard"
|
||||
}
|
||||
],
|
||||
"scriptFile": "__init__.py"
|
||||
|
Reference in New Issue
Block a user