Repository navigation
eozilla improvement ideas #49
b-yogesh
announced in
Announcements
Replies: 2 comments
|
I reviewed Irrigation-EU/irrigation-processor#1 and found I also asked ChatGPT (see: https://chatgpt.com/s/t_695ce2208b188191a545a2e702487821): |
0 replies
|
After a discussion with @forman , it was decided to change the workflow definition API for the users as follows: registry = ProcessRegistry()
@registry.main("myprocess")
def myprocess(): ...
@myprocess.step("mystep1")
def mystep1(): ...
@myprocess.step("mystep2")
def mystep2(): ... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The following are the initial thoughts on adding the workflow capabilities to eozilla. Further disucssions can be done below to reach an agreement on next steps.
Appligator/Procodile/Wraptile
It is a generic processing framework that helps users
create reliable, reproducible and scalable workflows.
User Guide
WOS - Workflow Orchestrating System e.g. (local, airflow, calvalus, deltaTwin etc.)
WF - Workflow
App - Application
User roles:
appligatorPackageThe package that the WFD and AP would use shall be called
appligatorwhich is extensible to support dedicated WOS' plugins.
For e.g.
appligator-airflow,appligator-calvalusetc.Concepts:
Workflow RegistryWorkflowApplication PackageWorkflow StepDependenciesWorkflow EntrypointInput DescriptionandOutput DescriptionJobUsage:
First we create a regsitry instance:
Then we create a workflow instance from this registry instance:
Now, this instance
workflow_1can be used to create the actual workflow.It is used as a decorator around your steps. The first step you register
should be registered using
mainto tell the framework that this is wherethe workflow's entrypoint is. This should contain all the
different inputs that needs to be passed to different steps downstream.
First let us create some input descriptions for the inputs that are needed in
this step and others as this is the main entrypoint:
TODO: What should a context var provide and should we include it here?
Main should provide the interface containing all the different parameters that
the workflow should support.
We have
FromMain(output_name)andFromStep(step_id, output_name)-> These are helper classes that helpin retrieving the outputs of upstream steps to be provided as inputs to
the current step.
param1_descriptioncan be any of these:'FieldInfo' or 'InputDescription' or
FromMainorFromStepworkflow.main-> this is the interface that is exposed to the usersto execute our workflow. All the inputs that are needed by this workflow
should be provided here. There should be only one main in a worflow.
alias for main = process -> so that it works with the current code.
Envisaged use regarding the
input_fieldswhere it isnot possible to use type annotations.
the decorated function should be annotated properly.
Make procodile <-> Appligator OGC Workflow model (in draft) compliant
We need
Procodile final output -> CWL encompassing all the steps and deps in workflow
Appligator -> takes this CWL, toposort, build an Airflow dag based on deps
workflow.execute-> pass it to Airflow.All reactions