N
Novu2mo ago
chichin

Can't check transaction status

Hello! We've have a pipeline which triggers the workflow execution. We should cancel that by transactionId. That works using sdk for nodejs:
return this.novu.events
.cancel(transactionId)
.then(({ data: { data } }) => data);
return this.novu.events
.cancel(transactionId)
.then(({ data: { data } }) => data);
However, we can't check the status if that's really cancelled. Dashboard doesn't show the status, just saying worklow steps are pending timeouts (We have delay steps between other steps) The operation above returns false, and no reason explained why. Can we check the operation status before cancellation? E.g., if cancellation returns false, then we will check status. If status = 'cancelled' or something like that, that we'll just ignore that. Thank you in advance!
4 Replies
Pawan Jain
Pawan Jain2mo ago
@chichin
If false value is returned in response, it means that event has already been completed its execution or cancelled before. Already completed event can not be cancelled. If true value is returned in response, then it means that event execution has been cancelled successfully. Any digest or delay step with pending exection will also be cancelled.
If false value is returned in response, it means that event has already been completed its execution or cancelled before. Already completed event can not be cancelled. If true value is returned in response, then it means that event execution has been cancelled successfully. Any digest or delay step with pending exection will also be cancelled.
This is a bug from our side where we don't show cancellation status in activity feed page. It is planned and will be fixed soon
chichin
chichinOP2mo ago
So, I can be 100% sure, execution is cancelled if false value returned ?
Pawan Jain
Pawan Jain2mo ago
Yes
chichin
chichinOP2mo ago
Cool, thank you very much!
Want results from more Discord servers?
Add your server