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

@ -8,14 +8,13 @@ import logging
import azure.functions as func
from onefuzztypes.enums import JobState, TaskState
from ..onefuzzlib.events import get_events
from ..onefuzzlib.jobs import Job
from ..onefuzzlib.orm import process_state_updates
from ..onefuzzlib.tasks.main import Task
from ..onefuzzlib.tasks.scheduler import schedule_tasks
def main(mytimer: func.TimerRequest, dashboard: func.Out[str]) -> None: # noqa: F841
def main(mytimer: func.TimerRequest) -> None: # noqa: F841
expired_tasks = Task.search_expired()
for task in expired_tasks:
logging.info(
@ -41,7 +40,3 @@ def main(mytimer: func.TimerRequest, dashboard: func.Out[str]) -> None: # noqa:
schedule_tasks()
Job.stop_never_started_jobs()
events = get_events()
if events:
dashboard.set(events)

View File

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