Cancel job Ash Oban

Is there a correct way to cancel a job in ash oban? Specifically, I'm trying to cancel the :respond job in the generated chat in Ash AI if the user wants to stop the response like in other AI chat apps
2 Replies
ZachDaniel
ZachDaniel2mo ago
the way I suggest to do this is not to cancel the job itself, but to add an attribute to the message like cancelled that can be set to true Then in your trigger, you can add a filter like filter expr(cancelled != true)
Boris - BackedBy
Boris - BackedByOP2mo ago
That's perfect. Thank you!

Did you find this page helpful?