minos.networks.scheduling.ports

Classes

PeriodicPort

Periodic Port class.

PeriodicTaskSchedulerService

Periodic Task Scheduler Service class.

class PeriodicPort[source]

Bases: Port

Periodic Port class.

__init__(**kwargs)[source]
scheduler

Get the service scheduler.

Returns

A PeriodicTaskScheduler instance.

property context: aiomisc.context.Context
set_loop(loop)
Parameters

loop (AbstractEventLoop) –

Return type

None

async start()

Start the port execution.

Returns

This method does not return anything.

Return type

None

property start_event: asyncio.locks.Event
async stop(err=None)

Stop the port execution.

Parameters

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

Returns

This method does not return anything.

Return type

None

class PeriodicTaskSchedulerService[source]

Bases: PeriodicPort

Periodic Task Scheduler Service class.

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

Get the service scheduler.

Returns

A PeriodicTaskScheduler instance.

set_loop(loop)
Parameters

loop (AbstractEventLoop) –

Return type

None

async start()

Start the port execution.

Returns

This method does not return anything.

Return type

None

property start_event: asyncio.locks.Event
async stop(err=None)

Stop the port execution.

Parameters

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

Returns

This method does not return anything.

Return type

None