Use pipeline docstrings as descriptions #4198
Projects
Comments
|
Hi @abkfenris - I agree that this would be helpful to have. It looks like you've looked at the code already - is this something you'd be interested in submitting a PR for? |
|
I haven't gotten as far as looking what I need to do to build and test locally yet, just poking around the repo, though apparently not enough to find that existing issue I might be able to take a swing at it in the next week or so. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Use Case
Currently to populate the description of a
@pipeline(), you have to specify the description in decorator keyword arguments.This differs from
@solid(), which will use the functions docstring for a description, if a description keyword argument is not specified.It would be nice to have the interfaces to the common decorators be similar, and using the docstring for the description, keeps relevant function information where a Python programmer expects to see it, allowing:
Ideas of Implementation
It looks like
@solid()picks up the docstring if the description is not specified on line 92 of_Solid.__call__()dagster/python_modules/dagster/dagster/core/definitions/decorators/solid.py
Lines 86 to 92 in 5d38b23
@pipeline()should similarly be able to be tweaked in_Pipeline.__call__() to get a similar result.dagster/python_modules/dagster/dagster/core/definitions/decorators/pipeline.py
Lines 74 to 80 in 5d38b23
Changing
description=self.description of fn.__doc__,should it.Additional Info
Message from the maintainers:
Excited about this feature? Give it a👍 . We factor engagement into prioritization.
The text was updated successfully, but these errors were encountered: