It's possible to create custom states? Also, it's possible to aggregate (or search) by an error string (or by state) instead of debugging the log of each run on the Cloud?
k
Kevin Kho
08/26/2021, 2:48 PM
Hey @Italo Barros, for creating custom states, currently no, but I think this will be possible in the future. You can search for a State in the UI. If you want to search by error string, I think you may need to query the GraphQL API for task run states with the given state message.
π 1
Kevin Kho
08/26/2021, 2:49 PM
This is the most basic query
Copy code
query{
task_run_state{
id
message
state
}
}
β€οΈ 1
i
Italo Barros
08/26/2021, 2:52 PM
Got it, thank you @Kevin Kho! Just one last question, is possible to change the tasks run name to a custom one? For example, let's suppose that I have a task that runs every 5 minutes, and instead of a random name (like "magic-shrew") I would like to do something like task_{timestamp}
k
Kevin Kho
08/26/2021, 2:54 PM
Are we talking about Flow or tasks just to be sure?
The Tasks, using my previous example, lets suppose that I have one Flow that run a Task every 5 minutes, and instead of the random run names on bellow I would like to do a custom one