Workflow Concepts
Messages
Task executions produce logs, displayed on the Latch console to provide users visibility into their workflows. However, these logs tend to be terribly verbose. It’s tedious to sift through piles of logs looking for useful signals; instead, important information, warnings, and errors should be prominently displayed. This is accomplished through the Latch SDK’s new messaging feature.
The typ
parameter affects how your message is styled. It currently accepts three options:
info
warning
error
The data
parameter contains the message to be displayed. It’s represented as a Python dict
and requires two inputs,
title
: The title of your messagebody
: The contents of your message
For more information, see latch.functions.messages
under the API docs.
Was this page helpful?