Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/utils/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import child_process from "node:child_process"
import fs from "node:fs"
import path from "node:path"
import { setTimeout } from "timers/promises"
import { rimraf } from "rimraf"

// Third party imports
import { WebSocket } from "ws"
Expand Down Expand Up @@ -182,14 +183,15 @@ async function delete_folder_recursive(data_folder_path) {
for (let i = 0; i <= MAX_DELETE_FOLDER_RETRIES; i += 1) {
try {
console.log(`Deleting folder: ${data_folder_path}`)
fs.rmSync(data_folder_path, { recursive: true, force: true })
await rimraf(data_folder_path)
console.log(`Deleted folder: ${data_folder_path}`)
return
} catch (error) {
console.error(`Error deleting folder ${data_folder_path}:`, error)
// Wait before retrying
const DELAY = 1000 * (i + 1)
await setTimeout(DELAY)
console.log("Retrying deleting folder")
}
}
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"nuxt": "4.2.2",
"p-timeout": "7.0.1",
"pinia": "3.0.4",
"rimraf": "6.1.3",
"rxjs": "^7.8.2",
"sass": "1.87.0",
"semver": "7.7.1",
Expand Down
1 change: 0 additions & 1 deletion tests/integration/microservices/back/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
# pip-compile --output-file=tests/integration/microservices/back/requirements.txt tests/integration/microservices/back/requirements.in
#

opengeodeweb-back==6.*,>=6.1.3
1 change: 0 additions & 1 deletion tests/integration/microservices/viewer/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
# pip-compile --output-file=tests/integration/microservices/viewer/requirements.txt tests/integration/microservices/viewer/requirements.in
#

opengeodeweb-viewer==1.*,>=1.15.3
Loading