feat(xo-server/jobs): add job name to logs (#3351)

Fixes #3272
This commit is contained in:
Julien Fontanet 2018-08-23 11:29:42 +02:00 committed by GitHub
parent 138aed8ae1
commit 00d1985cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,7 @@
- [Backup NG form] Show the compression checkbox when the full mode is active [#3236](https://github.com/vatesfr/xen-orchestra/issues/3236) (PR [#3345](https://github.com/vatesfr/xen-orchestra/pull/3345))
- [New VM] Display an error when the getting of the coreOS default template fails [#3227](https://github.com/vatesfr/xen-orchestra/issues/3227) (PR [#3343](https://github.com/vatesfr/xen-orchestra/pull/3343))
- [Backup NG form] Set default retention to 1 [#3134](https://github.com/vatesfr/xen-orchestra/issues/3134) (PR [#3290](https://github.com/vatesfr/xen-orchestra/pull/3290))
- [Backup NG] New logs are searchable by job name [#3272](https://github.com/vatesfr/xen-orchestra/issues/3272) (PR [#3351](https://github.com/vatesfr/xen-orchestra/pull/3351))
### Bug fixes

View File

@ -13,6 +13,10 @@ export default {
type: 'string',
description: 'identifier of this job',
},
jobName: {
type: 'string',
description: 'name of this job when it was started',
},
scheduleId: {
type: 'string',
description: 'identifier of the schedule which ran the job',

View File

@ -64,6 +64,7 @@ export default {
data: data.data,
id,
jobId,
jobName: data.jobName,
scheduleId,
start: time,
status: runningJobs[jobId] === id ? 'pending' : 'interrupted',

View File

@ -272,6 +272,7 @@ export default class Jobs {
event: 'job.start',
userId: job.userId,
jobId: id,
jobName: job.name,
scheduleId: schedule?.id,
// $FlowFixMe only defined for CallJob
key: job.key,