airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-6385) SlackAPIPostOperator fails when blocks not set
Date Fri, 03 Jan 2020 18:15:00 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-6385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17007678#comment-17007678
] 

ASF subversion and git services commented on AIRFLOW-6385:
----------------------------------------------------------

Commit 2adf17bc654ae9a6d6c740a40e98ce8a117f4126 in airflow's branch refs/heads/master from
Kaxil Naik
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=2adf17b ]

[AIRFLOW-6385] BugFix: SlackAPIPostOperator fails when blocks not set (#7022)



> SlackAPIPostOperator fails when blocks not set
> ----------------------------------------------
>
>                 Key: AIRFLOW-6385
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6385
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: 1.10.7
>            Reporter: Dmytro Kulyk
>            Assignee: Kaxil Naik
>            Priority: Critical
>              Labels: slack
>             Fix For: 1.10.8
>
>
> After upgrade to 1.10.7 all slack notifications became faulty
> SlackAPIPostOperator fails when blocks not set
> {code}
>     t_slack_ok = SlackAPIPostOperator(
>         task_id = 'notify_ok',
>         token = Variable.get('slack.token'),
>         channel = Variable.get('slack.channel'),
>         text = ':rocket: {{ dag.dag_id }} for {{ ds }} has succeeded',
>         dag = dag)
> {code}
> Causing an operator error:
> {code}
> [2019-12-28 21:55:14,668] {taskinstance.py:1088} ERROR - Slack API call failed (invalid_blocks_format)
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/dist-packages/airflow/models/taskinstance.py", line
955, in _run_raw_task
>     result = task_copy.execute(context=context)
>   File "/usr/local/lib/python3.6/dist-packages/airflow/operators/slack_operator.py",
line 85, in execute
>     slack.call(self.method, self.api_params)
>   File "/usr/local/lib/python3.6/dist-packages/airflow/hooks/slack_hook.py", line 62,
in call
>     raise AirflowException(msg)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message