Add timing information for backups
This commit is contained in:
@@ -47,6 +47,7 @@ function initialize(callback) {
|
||||
}
|
||||
|
||||
// Main process starts here
|
||||
const startTime = new Date();
|
||||
debug(`Starting task ${taskId}`);
|
||||
|
||||
initialize(function (error) {
|
||||
@@ -63,6 +64,8 @@ initialize(function (error) {
|
||||
error: error ? JSON.parse(JSON.stringify(error, Object.getOwnPropertyNames(error))) : null
|
||||
};
|
||||
|
||||
debug(`Task took ${(new Date() - startTime)/1000} seconds`);
|
||||
|
||||
tasks.setCompleted(taskId, progress, () => process.exit(error ? 50 : 0));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user