Will Brown
04/02/2020, 4:28 PMCan't execute a dagstermill solid from a pipeline that wasn't instantiated using an ExecutionTargetHandle
error. I'm doing development of pipeline one task at a time and re-executing using execute_pipeline so i can iterate in debugger quickly. I was able to work around this by building from execute handle. This could be documented somewhere.
handle = ExecutionTargetHandle.for_pipeline_python_file('rightsizedag.py', 'rightsize_pipeline')
pipeline = handle.build_pipeline_definition()
result = execute_pipeline(pipeline, instance=instance, environment_dict=env, run_config=rc)
# Fetch the kernel name if it's not supplied
kernel_name = kernel_name or nb.metadata.kernelspec.name
I was able to work around this by injecting a kernel name in the ipynb. I created the notebook with dagstermill cli and it didnt have this. It would be nice if kernel name could be specified as config to the solid.
edit: the exception was a key error that 'kernelspec' didnt exist.alex
04/02/2020, 4:33 PMWill Brown
04/02/2020, 4:35 PMcontext = __dm_dagstermill._reconstitute_pipeline_context(**__dm_seven.json.loads('...
This string doesn't have ' escaped so the whole cell fails with syntax error. I tried manually editing the cell to escape all the ' and the notebook can run the cell and loads all my inputs.alex
04/02/2020, 4:38 PMmax
04/02/2020, 5:02 PMWill Brown
04/02/2020, 9:41 PMsolids:
query_vm_resources:
config:
custom_projections: "vm_size = tostring(properties['hardwareProfile']['vmSize'])"
I have this in my config ^. Those '
get serialized right in to the cell as is. inside the __dm_seven.json.loads('...')
so the '
terminates the string and breaks the syntax of the cell.max
04/02/2020, 9:43 PMWill Brown
04/03/2020, 12:14 AMmax
04/03/2020, 12:52 AMWill Brown
04/03/2020, 11:59 AM0.7.6
* Fixed an issue when executing dagstermill solids with config that contained quote characters.
* The Jupyter kernel to use may now be specified when creating dagster notebooks with the --kernel flag.🙂 so fast!
max
04/03/2020, 7:42 PMdefine_dagstermill_solid
that configures it to yield the notebook as an outputWill Brown
04/03/2020, 7:53 PMmax
04/03/2020, 8:17 PMWill Brown
04/03/2020, 8:28 PM