workers module¶
-
class
micro_framework.workers.CallbackWorker(callback_target, original_worker)¶
-
class
micro_framework.workers.Worker(target, translators, config, *fn_args, _meta=None, **fn_kwargs)¶ Bases:
objectWorker class that calls the target using an executor.
The Task is a TargetFunction instance or a TargetClass instance.
- The worker is responsible to call the Target methods:
on_worker_setup
mount_target
on_worker_finished
-
async
call_task(executor, fn, *fn_args, **fn_kwargs)¶
-
async
run(runner)¶