POCS icon indicating copy to clipboard operation
POCS copied to clipboard

Task Manager

Open wtgee opened this issue 2 years ago • 1 comments

Adding a celery task manager that will become the basis for much of the future POCS operation. Maybe. ;)

For now the simple command line utilities will start and stop the messaging (rabbitmq) and results backend (redis) using the python docker sdk.

Usage: pocs tasks [OPTIONS] COMMAND [ARGS]...

  Interact with the TaskManager.

Options:
  --help  Show this message and exit.

Commands:
  start-backends  Start the celery backends specified by the config.
  stop-backends   Stop the running celery backends specified by the config.

Description

The celery distributed task manager will allow for a number of tasks to be run in a distributed manner. For the POCS core this can include things that need knowledge of the time (e.g. startup at sunset rather than issue a sleep timer at sundown), but can also start to serve as the basis for distributed hardware control (e.g. the forth-coming task-based gphto2 camera class).

wtgee avatar Mar 16 '22 21:03 wtgee

Codecov Report

Base: 83.08% // Head: 73.04% // Decreases project coverage by -10.04% :warning:

Coverage data is based on head (3dae082) compared to base (4908119). Patch coverage: 51.27% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #1167       +/-   ##
============================================
- Coverage    83.08%   73.04%   -10.05%     
============================================
  Files           86       96       +10     
  Lines         7425     8072      +647     
  Branches       635      896      +261     
============================================
- Hits          6169     5896      -273     
- Misses        1083     2036      +953     
+ Partials       173      140       -33     
Impacted Files Coverage Δ
...c/panoptes/pocs/camera/gphoto/celery/controller.py 0.00% <0.00%> (ø)
src/panoptes/pocs/camera/gphoto/celery/settings.py 0.00% <0.00%> (ø)
src/panoptes/pocs/camera/gphoto/celery/worker.py 0.00% <0.00%> (ø)
src/panoptes/pocs/camera/gphoto/remote.py 0.00% <0.00%> (-21.57%) :arrow_down:
src/panoptes/pocs/sensor/power.py 40.23% <0.00%> (-1.74%) :arrow_down:
...rc/panoptes/pocs/state/states/default/analyzing.py 5.55% <0.00%> (-54.45%) :arrow_down:
...rc/panoptes/pocs/state/states/default/observing.py 13.33% <0.00%> (-62.86%) :arrow_down:
src/panoptes/pocs/state/states/default/tracking.py 6.66% <0.00%> (-76.67%) :arrow_down:
src/panoptes/pocs/utils/cli/main.py 0.00% <0.00%> (-70.00%) :arrow_down:
src/panoptes/pocs/utils/database.py 0.00% <0.00%> (ø)
... and 74 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Mar 17 '22 04:03 codecov[bot]