Remove signalr from endpoints (#1102)

This is a follow-on PR from #1100
This commit is contained in:
bmc-msft
2021-07-23 11:47:08 -04:00
committed by GitHub
parent 7e6a42cdd6
commit 0e27256faf
69 changed files with 37 additions and 413 deletions

View File

@ -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)

View File

@ -5,12 +5,6 @@
"name": "mytimer",
"schedule": "00:01:30",
"type": "timerTrigger"
},
{
"type": "signalR",
"direction": "out",
"name": "dashboard",
"hubName": "dashboard"
}
],
"scriptFile": "__init__.py"