Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sdobbert authored and sdobbert committed Mar 5, 2024
1 parent 9b675ee commit 739174b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/dataset-archive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ const archiveWorker = async (workerJob, inputs) => {
const filePath = `${finalDatadir}/${region}/${region}_temperature/${fileToArchive}`

const curlCmd = `curl --user ${iorUser}:${iorPass} -s -S -X POST -H "Content-type: application/zip" -d @${filePath} ${iorPath}?file_name=${fileToArchive}`;
try {
await execShellCommand(curlCmd);
logger.info("Successfuly excuted cURL command.");
}
catch {
logger.debug("Could not execute cURL command.");
try {
await execShellCommand(curlCmd);
logger.info("Successfuly excuted cURL command.");
}
catch {
logger.debug("Could not execute cURL command.");
}
}
}
};
// clean up files that are older than 49 hours
const datatype = [
Expand Down Expand Up @@ -175,7 +175,7 @@ const archiveWorker = async (workerJob, inputs) => {
for (const type of datatype) {
if (type.directoryPath) {
await cleanUpFiles(type.directoryPath);
}
}
await cleanUpDb(type);
}
} catch (error) {
Expand Down

0 comments on commit 739174b

Please sign in to comment.