Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conditional logic for setting pre and post hooks for batches
Previously we were doign an if+elif for setting pre and post hooks for batches, where in the `if` matched if the batch wasn't the first batch, and the `elif` matched if the batch wasn't the last batch. The issue with this is that if the `if` was hit the `elif` _wouldn't_ be hit. This caused the first batch to appropriately not run the `post-hook` but then every hook after would run the `post-hook`.
- Loading branch information