# Panfactum Changelog — edge.24-08-15 > Improves PostgreSQL failover speed with enhanced shutdown logic, adds workflow composition capabilities with template references, and fixes repository working directory issues in CI/CD workflows. ## Highlights - `pg_shutdown_timeout` renamed to `pg_smart_shutdown_timeout` in [`kube_pg_cluster`](https://panfactum.com/docs/edge/reference/infrastructure-modules/submodule/kubernetes/kube_pg_cluster) - New shutdown/failover logic reduces PostgreSQL downtime from 60-120s to <5s - Adds `templateRef` support to [`wf_spec`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_spec) for Workflow composition ## Breaking Changes - `pg_shutdown_timeout` has been renamed to `pg_smart_shutdown_timeout` in [`kube_pg_cluster`](https://panfactum.com/docs/edge/reference/infrastructure-modules/submodule/kubernetes/kube_pg_cluster). Additionally, the shutdown and failover logic has been overhauled to reduce failover - Impacts: iac-module `kube_pg_cluster` — Shutdown timeout renamed; failover downtime reduced to under 5s ## Additions - Adds passthrough parameters to [`wf_spec`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_spec). - Impacts: iac-module `wf_spec` — Passthrough parameters added - Makes `tf_apply_dir` a Workflow parameter in [`wf_tf_deploy`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_tf_deploy) so that only a single instance of this module is needed per cluster. - Impacts: iac-module `wf_tf_deploy` — tf_apply_dir exposed as a Workflow parameter - Adds the ability to use `templateRef` to [compose Workflows](https://argo-workflows.readthedocs.io/en/latest/workflow-templates/#referencing-other-workflowtemplates) in [`wf_spec`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_dockerfile_build). - Impacts: iac-module `wf_spec` — templateRef support added for Workflow composition ## Fixes - Fixed the working directory in [`wf_tf_deploy`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_tf_deploy) and [`wf_dockerfile_build`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_dockerfile_build) to be inside the cloned repository. - Impacts: iac-module `wf_tf_deploy` — Working directory fixed to cloned repository - Impacts: iac-module `wf_dockerfile_build` — Working directory fixed to cloned repository - Addressed OOM errors when using resource templates with [`wf_spec`](https://panfactum.com/docs/main/reference/infrastructure-modules/submodule/workflow/wf_spec). - Impacts: iac-module `wf_spec` — OOM errors with resource templates resolved - Reference (issue-report): [OOM errors with wf_spec resource templates](https://github.com/Panfactum/stack/issues/111) ## Related Resources - [JSON Data](https://panfactum.com/docs/changelog/edge.24-08-15.json): Machine-readable data - [Channel Release List](https://panfactum.com/docs/changelog/edge.json): All releases in this channel