@@ -26,6 +26,7 @@ package taskclass
2626
2727import (
2828 "fmt"
29+ "time"
2930
3031 "github.com/AliceO2Group/Control/common"
3132 "github.com/AliceO2Group/Control/common/controlmode"
@@ -64,13 +65,14 @@ type Class struct {
6465 Control struct {
6566 Mode controlmode.ControlMode `yaml:"mode"`
6667 } `yaml:"control"`
67- Command * common.CommandInfo `yaml:"command"`
68- Wants ResourceWants `yaml:"wants"`
69- Limits * ResourceLimits `yaml:"limits"`
70- Bind []channel.Inbound `yaml:"bind"`
71- Properties gera.StringMap `yaml:"properties"`
72- Constraints []constraint.Constraint `yaml:"constraints"`
73- Connect []channel.Outbound `yaml:"connect"`
68+ Command * common.CommandInfo `yaml:"command"`
69+ Wants ResourceWants `yaml:"wants"`
70+ Limits * ResourceLimits `yaml:"limits"`
71+ Bind []channel.Inbound `yaml:"bind"`
72+ Properties gera.StringMap `yaml:"properties"`
73+ Constraints []constraint.Constraint `yaml:"constraints"`
74+ Connect []channel.Outbound `yaml:"connect"`
75+ UpdatedTimestamp time.Time `yaml:"-"`
7476}
7577
7678func (c * Class ) UnmarshalYAML (unmarshal func (interface {}) error ) (err error ) {
@@ -106,17 +108,18 @@ func (c *Class) UnmarshalYAML(unmarshal func(interface{}) error) (err error) {
106108 }
107109 }
108110 * c = Class {
109- Identifier : aux .Identifier ,
110- Defaults : gera .MakeStringMapWithMap (aux .Defaults ),
111- Vars : gera .MakeStringMapWithMap (aux .Vars ),
112- Control : aux .Control ,
113- Command : aux .Command ,
114- Wants : aux .Wants ,
115- Limits : aux .Limits ,
116- Bind : aux .Bind ,
117- Properties : gera .MakeStringMapWithMap (aux .Properties ),
118- Constraints : aux .Constraints ,
119- Connect : aux .Connect ,
111+ Identifier : aux .Identifier ,
112+ Defaults : gera .MakeStringMapWithMap (aux .Defaults ),
113+ Vars : gera .MakeStringMapWithMap (aux .Vars ),
114+ Control : aux .Control ,
115+ Command : aux .Command ,
116+ Wants : aux .Wants ,
117+ Limits : aux .Limits ,
118+ Bind : aux .Bind ,
119+ Properties : gera .MakeStringMapWithMap (aux .Properties ),
120+ Constraints : aux .Constraints ,
121+ Connect : aux .Connect ,
122+ UpdatedTimestamp : time .Now (),
120123 }
121124 }
122125 return
0 commit comments