Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary CWL DAG deployment #9

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Conversation

jpl-btlunsfo
Copy link
Collaborator

@jpl-btlunsfo jpl-btlunsfo commented Jun 10, 2024

Purpose

  • Automatically generate a basic CWL-executing DAG
  • Deployable using the executionUnit parameters of an OGC request

Proposed Changes

  • Adding cwl template file
  • Changing deploy_process method to create file if executionunit is present

Issues

Testing

  • tested output of templating script in personal airflow deployment, successfully ran echo cwl task
Screenshot 2024-06-17 at 10 35 14 PM - Successfully deployed multiple DAGs through the OGC api

@jpl-btlunsfo jpl-btlunsfo self-assigned this Jun 10, 2024
@jpl-btlunsfo jpl-btlunsfo marked this pull request as ready for review August 19, 2024 18:56
@jpl-btlunsfo
Copy link
Collaborator Author

Successfully deployed templated DAG through a modified OGC endpoint!
Screenshot 2024-08-19 at 1 47 42 PM

Going forward, the request payload schema will be just a little bit different (still abiding by https://docs.ogc.org/DRAFTS/20-044.html)
Screenshot 2024-08-19 at 1 47 32 PM

@jpl-btlunsfo jpl-btlunsfo changed the title initial work, simple file templating Arbitrary CWL DAG deployment Aug 26, 2024
@jpl-btlunsfo
Copy link
Collaborator Author

Example request (for a cwl dag):

creating

URL (POST to): http://k8s-sps-ogcproce-64159ac933-118635354.us-west-2.elb.amazonaws.com:5001/processes
Body:

{
    "executionUnit":{
        "type": "application/cwl",
        "href": "https://raw.githubusercontent.com/unity-sds/unity-sps-workflows/main/demos/echo_message.cwl"
    },
    "processDescription": {
        "id": "test_cwl_dag1",
        "title": "testing cwl dag1",
        "description": "placeholder description",
        "version": "1.0.2",
        "jobControlOptions": [
            "async-execute",
            "sync-execute"
        ],
        "inputs": [],
        "outputs": [],
        "links": [
            {
            "href": "https://processing.example.org/oapi-p/processes/EchoProcess/execution",
            "rel": "http://www.opengis.net/def/rel/ogc/1.0/execute",
            "title": "Execute endpoint"
            }
        ]
    }
}

deleting

URL (send a DELETE to): http://k8s-sps-ogcproce-64159ac933-118635354.us-west-2.elb.amazonaws.com:5001/processes/test_cwl_dag2
(no body necessary)

also dropping cwl_workflow from the arguments, given this is provided by the request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant