Closed Bug 1145687 Opened 11 years ago Closed 11 years ago

[provisioner] store time of last modification in the workerTypes

Categories

(Taskcluster :: Services, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhford, Assigned: jhford)

References

Details

In order to be able to figure out when to hard kill nodes one hour after updating, we need to know when the definition was last changed. This will be exposed as a top level key 'lastModified' in the workerType entity. Basically, the .create and .update methods will do something like this: worker.lastModified = new Date();
I would advice against putting this logic into .create and .modify, but instead use it everywhere you do a creation/modification, most likely this is only two places anyways. Note, at the moment the scheduler modifies .create, .load, etc, methods on base.Entity, I generally think this is a bad idea. Unless there is a lot of complicated logic that can be deduplicated in this manner. --- Anyways, implementation strategy of storing lastModified is great :)
Component: TaskCluster → AWS-Provisioner
Product: Testing → Taskcluster
work to store last modified for each worker type has been done here: https://github.com/taskcluster/aws-provisioner/commit/de527b55429421cd1bef242b77e4ca26e9b861b1
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: nobody → jhford
Component: AWS-Provisioner → Services
You need to log in before you can comment on or make changes to this bug.