How to use the dagster.lambda_solid function in dagster

To help you get started, we’ve selected a few dagster examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dagster-io / dagster / python_modules / dagster-graphql / dagster_graphql_tests / test_multiprocessing.py View on Github external
@lambda_solid(
    input_defs=[InputDefinition('num', PoorMansDataFrame)],
    output_def=OutputDefinition(PoorMansDataFrame),
)
def sum_solid(num):
    sum_df = deepcopy(num)
    for x in sum_df:
        x['sum'] = x['num1'] + x['num2']
    return PoorMansDataFrame(sum_df)
github dagster-io / dagster / python_modules / dagster / dagster_tests / core_tests / definitions_tests / test_pipeline.py View on Github external
    @lambda_solid(input_defs=[InputDefinition('num_one'), InputDefinition('num_two')])
    def add(num_one, num_two):
        return num_one + num_two
github dagster-io / dagster / python_modules / dagster-graphql / dagster_graphql_tests / graphql / setup.py View on Github external
    @lambda_solid(input_defs=[InputDefinition('num')])
    def div_two(num):
        return num / 2