Is there any way to flag to Dagster that a sensor ...
# dagster-feedback
s
Is there any way to flag to Dagster that a sensor has successfully completed some action (i.e. not skipped), but it did not result in a run? I can use SkipReason to show a custom message, but it makes it look like the sensor was skipped. e.g. adding a line from this docs example.
Copy code
@run_status_sensor(run_status=DagsterRunStatus.SUCCESS)
def my_slack_on_run_success(context: RunStatusSensorContext):
    slack_client = WebClient(token=os.environ["SLACK_DAGSTER_ETL_BOT_TOKEN"])
    slack_client.chat_postMessage(
        channel="#alert-channel",
        message=f'Job "{context.dagster_run.job_name}" succeeded.',
    )

    yield SuccessMessage("Posted to Slack!")
plus1 1
Building out a custom sensor to look at all runs on the instance to send Datadog metrics when they complete, and it's working, but hard to tell from the UI. (I can't submit runs to send the metrics, or I'd enter an eternal loop of reporting on metric run completions 🙂 )
s
this isn't currently possible, but I filed an issue to track it: https://github.com/dagster-io/dagster/issues/9504
❤️ 1