Skip to content

Commit

Permalink
Add more logging when License expires
Browse files Browse the repository at this point in the history
part of #4772
  • Loading branch information
hardillb committed Nov 14, 2024
1 parent 0b4c35f commit bfe20b9
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`)
}
})
}
Expand Down

0 comments on commit bfe20b9

Please sign in to comment.