I am running a scheduled autotask job in defender. Defender autotask shows success message that autotask is run but transaction is not written to blockchain. Relayer has enough funds. How to allow an autotask to wait for txn to be submitted and then show success message ? Because without this daily jobs will go unnoticed as autotask is not throwing error in this case as txn is not submiited to blockchain.
Code to reproduce