feat: proposition of task management for any kind of init, data processing, data trasnformation tasks #124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The idea is to manage any kind of "task" with a complete task management system
Maybe there is alreay a python module to do that, but here is a proposition of simplest and dummest kind of task manager
Here we replace init_script that already exists as independant tasks but as a task can run other tasks itself, we can implement an init task runing for example load_amp, load_vessels, load_vessel_positions, load_ports ... and other task
each task can be run as a unit task or be run by another parent task
This can be usefull when we will run data processing that will be configured in code but will be startable by a simple cron
This system run tasks in a sequential way but it can be improved to run tasks in paralell or in thread or independant processes...
Example:
Here is init pipeline creation: