https://flyte.org logo
#flyte-deployment
Title
# flyte-deployment
n

Nan Qin

03/22/2024, 2:54 AM
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

Samhita Alla

03/22/2024, 7:06 AM
hi! seems like an issue was created sometime ago: https://github.com/flyteorg/flyte/issues/4024
n

Nan Qin

03/22/2024, 1:21 PM
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

David Espejo (he/him)

03/22/2024, 4:05 PM
@Nan Qin so is it fixed?
n

Nan Qin

03/22/2024, 4:08 PM
no. no message received or sent in sqs