Skip to content

Commit

Permalink
Merge pull request #4773 from FlowFuse/more-logging-expired-license-s…
Browse files Browse the repository at this point in the history
…uspend

Add more logging when License expires
  • Loading branch information
hardillb authored Nov 18, 2024
2 parents 9c1babb + 94761bd commit becdc3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion forge/housekeeper/tasks/licenseCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ module.exports = {
// Shut down all running projects
projectList.forEach(async (project) => {
try {
app.db.controllers.Project.setInflightState(project, 'suspending')
await app.containers.stop(project)
app.db.controllers.Project.clearInflightState(project)
await app.auditLog.Project.project.suspended(null, null, project)
} catch (err) {
// do we need to log a failure?
app.log.info(`Failed to suspend ${project.id} when licensed expired. ${err.toString()}`)
}
})
}
Expand Down

0 comments on commit becdc3e

Please sign in to comment.