Skip to content

Commit

Permalink
solid -> op in dagster-slack (#7684)
Browse files Browse the repository at this point in the history
  • Loading branch information
sryza committed May 4, 2022
1 parent 7504407 commit 5fac185
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python_modules/libraries/dagster-slack/dagster_slack/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


def _default_status_message(context: HookContext, status: str) -> str:
return "Solid {solid_name} on pipeline {pipeline_name} {status}!\nRun ID: {run_id}".format(
solid_name=context.solid.name,
return "Op {op_name} on job {pipeline_name} {status}!\nRun ID: {run_id}".format(
op_name=context.op.name,
pipeline_name=context.pipeline_name,
run_id=context.run_id,
status=status,
Expand Down Expand Up @@ -96,7 +96,7 @@ def my_job():
.. code-block:: python
def my_message_fn(context: HookContext) -> str:
return f"Op {context.solid} worked!"
return f"Op {context.op} worked!"
@op
def an_op(context):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def slack_resource(context):
The resource object is a `slack_sdk.WebClient`.
By configuring this Slack resource, you can post messages to Slack from any Dagster solid:
By configuring this Slack resource, you can post messages to Slack from any Dagster op:
Examples:
Expand Down

0 comments on commit 5fac185

Please sign in to comment.