@@ -139,6 +139,8 @@ async function handleCleanup() {
139139 * This function only builds the street graph with OSM and DEM data.
140140 */
141141async function buildStreetOnlyGraph ( name ) {
142+ await handleCleanup ( ) ;
143+
142144 await handleSeeding ( ) ;
143145
144146 await handleOsmAndDemUpdate ( ) ;
@@ -174,6 +176,8 @@ async function buildStreetOnlyGraph(name) {
174176 * This function does the whole build.
175177 */
176178async function buildGraph ( name ) {
179+ await handleCleanup ( ) ;
180+
177181 await handleSeeding ( ) ;
178182
179183 await handleOsmAndDemUpdate ( ) ;
@@ -201,8 +205,6 @@ async function buildGraph(name) {
201205
202206 buildAndDeployDockerImages ( date ) ;
203207
204- await handleCleanup ( ) ;
205-
206208 if ( global . hasFailures ) {
207209 updateSlackMessage (
208210 `${ name } data updated, but partially falling back to older data :boom:` ,
@@ -216,6 +218,8 @@ async function buildGraph(name) {
216218 * This function builds the graph from prebuilt street graph data.
217219 */
218220async function buildWithPrebuiltStreetGraph ( name ) {
221+ await handleCleanup ( ) ;
222+
219223 await handleSeeding ( ) ;
220224
221225 await start ( 'gtfs:update' ) ;
@@ -241,8 +245,6 @@ async function buildWithPrebuiltStreetGraph(name) {
241245
242246 buildAndDeployDockerImages ( date ) ;
243247
244- await handleCleanup ( ) ;
245-
246248 if ( global . hasFailures ) {
247249 updateSlackMessage (
248250 `${ name } data updated from prebuilt street only graph, but partially falling back to older data :boom:` ,
0 commit comments