kraken icon indicating copy to clipboard operation
kraken copied to clipboard

Add late function execution in schema

Open godfryd opened this issue 5 years ago • 0 comments

Eg. Instead of struct in jobs field put a function invocation in string. Example:

def get_jobs(ctx):
    ....
    return jobs

def stage(ctx):
    return {
        "parent": "root",
        "triggers": {
            "parent": True,
        },
        "parameters": [],
        "configs": [],
        "jobs": get_jobs
    }

get_job is invoked with ctx when it is needed.

godfryd avatar Sep 13 '20 18:09 godfryd