mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-19 13:03:44 +00:00
Remove signalr from endpoints (#1102)
This is a follow-on PR from #1100
This commit is contained in:
@ -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)
|
||||
|
@ -5,12 +5,6 @@
|
||||
"name": "mytimer",
|
||||
"schedule": "00:00:15",
|
||||
"type": "timerTrigger"
|
||||
},
|
||||
{
|
||||
"type": "signalR",
|
||||
"direction": "out",
|
||||
"name": "dashboard",
|
||||
"hubName": "dashboard"
|
||||
}
|
||||
],
|
||||
"scriptFile": "__init__.py"
|
||||
|
Reference in New Issue
Block a user