media-cloud-ai / mcai_worker_sdk

:warning: This project has been migrated and split into https://gitlab.com/media-cloud-ai/sdks/rs_mcai_worker_sdk and https://gitlab.com/media-cloud-ai/sdks/py_mcai_worker_sdk. This repository is not supported anymore.
2 stars 1 forks source link

Add management event #126

Closed MarcAntoine-Arnaud closed 3 years ago

MarcAntoine-Arnaud commented 4 years ago

For live worker, a management of it status is required. Today, a dedicated queue is able to return status of the worker, describing memory, cpu usage etc. here

This issue will add: Parameters are same parameters as Job parameters.

  1. init with parameters to setup a configuration. It can be use in the futur to preload a Model for IA for example.

  2. start process with parameter to begin the task. It can have a parameter to schedule this action (many can be authorised)

  3. stop process with parameter to ending the task. It can have a parameter to schedule this action (many can be authorised)

  4. current status: be able to return connections status

  5. monitor: return periodically the status event. The frequency is a parameter. It can be changed and stopped.

  6. Update job: (to update keywords for STT for example)