When a script is created in erpnext in scheduled mode, a log is created in the background job at runtime and you can see the status of the transaction execution there.
Error management is great in terms of access and successful or unsuccessful execution in this log.
I recommend creating a tab in the browser for the background job.