Skip to content

Commit

Permalink
Move permit process to last place in nightly
Browse files Browse the repository at this point in the history
It's the one that takes the longest and is not as critical as most of the others.
  • Loading branch information
Cruikshanks committed Sep 17, 2024
1 parent 5917c4b commit 78dda8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/nightly-import/process-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ async function go () {

await _naldDataProcess(allResults)
await _cleanProcess(allResults)
await _permitProcess(allResults)
await _companyDetailsProcess(allResults)
await _licenceDetailsProcess(allResults)
await _modLogsProcess(allResults)
await _returnVersionsProcess(allResults)
await _permitProcess(allResults)

const logData = calculateAndLogTimeTaken(startTime, 'nightly-import complete')
const timeMessage = _timeMessage(logData.timeTakenSs)
Expand Down Expand Up @@ -104,9 +104,9 @@ async function _cleanProcess (allResults) {

async function _companyDetailsProcess (allResults) {
try {
const { companyDetails, permit } = allResults
const { clean, companyDetails } = allResults

if (!permit.completed) {
if (!clean.completed) {
return
}

Expand Down Expand Up @@ -187,9 +187,9 @@ async function _naldDataProcess (allResults) {

async function _permitProcess (allResults) {
try {
const { clean, permit } = allResults
const { permit, returnVersions } = allResults

if (!clean.completed) {
if (!returnVersions.completed) {
return
}

Expand Down

0 comments on commit 78dda8f

Please sign in to comment.