Hi, is there an equivalent section to <these lines...
# flyte-deployment
n
Hi, is there an equivalent section to these lines for setting up notifications in flyte-binary deployment?
I tried setting the following lines under
configuration.inline
Copy code
notifications:
            emailer:
              sender: flyte-notifications@company.com
              subject: 'Notice: Execution "{{ name }}" has "{{ phase }}" in "{{ domain}}".'
              body: >
                View details at <a href=<http://flyte.abc.com/projects{{> project }}/domains/{{ domain }}/executions/{{ name }}>
            processor:
              accountId: 1234567
              queueName: flyte
            publisher:
              topicName: arn:aws:sns:us-east-1:1234567:flyte
            region: us-east-1
            type: aws
it took some effect because the flyte-binary pod failed to access sqs at first. So I added the sqs and sns policies to the iam role to fix it. howerver, there was no message sent to the sqs (and thus slack or email) when I launched workflows with:
Copy code
FlyteRemote.execute(
    my_wf,
    options=remote.Options(
        notifications=[
            flytekit.Slack(
                [WorkflowExecutionPhase.ABORTED, WorkflowExecutionPhase.FAILED, WorkflowExecutionPhase.SUCCEEDED],
                ["abc@abc.slack.com"],
            ),
            flytekit.Email(
                [WorkflowExecutionPhase.ABORTED, WorkflowExecutionPhase.FAILED, WorkflowExecutionPhase.SUCCEEDED],
                ["abc@abc.com"],
            ),
        ]
    )
)
s
hi! seems like an issue was created sometime ago: https://github.com/flyteorg/flyte/issues/4024
n
I worked around this issue by overwriting the
emailer
section with kustomization after helm templating. My issue seems different. From the aws console I saw flyte-binary is fetching the sqs messages however there was no message sent to the queue when a workflow reached a termination state.
d
@Nan Qin so is it fixed?
n
no. no message received or sent in sqs