In this job for example : https://github.com/kalisio/c3x-arpege/blob/ef7bd729dcbcf14d435313904a683dd735603150/jobfile-arpege-0.1.js
If there's an error in connectFTP which is a before hook, then disconnectFTP called in the error hooks complains that it should only be called in a after/error hook as seen here
If the error happens in some of the after hooks, then error hooks work fine.
In this job for example : https://github.com/kalisio/c3x-arpege/blob/ef7bd729dcbcf14d435313904a683dd735603150/jobfile-arpege-0.1.js
If there's an error in
connectFTPwhich is abeforehook, thendisconnectFTPcalled in theerrorhooks complains that it should only be called in aafter/errorhook as seen hereIf the error happens in some of the
afterhooks, thenerrorhooks work fine.