minos.networks.scheduling.services module

class minos.networks.scheduling.services.PeriodicTaskSchedulerService(**kwargs)[source]

Bases: aiomisc.service.base.Service

Task Scheduler Service class.

__init__(**kwargs)[source]
property context: aiomisc.context.Context
Return type

aiomisc.context.Context

scheduler

Get the service scheduler.

Returns

A PeriodicTaskScheduler instance.

set_loop(loop)
Return type

None

async start()[source]

Start the service execution.

Return type

None

Returns

This method does not return anything.

property start_event: asyncio.locks.Event
Return type

asyncio.locks.Event

async stop(exception=None)[source]

Stop the service execution.

Parameters

exception (typing.Optional[Exception]) – Optional exception that stopped the execution.

Return type

None

Returns

This method does not return anything.