HomePhorge

(#7165) Properties can invalidate scheduled refreshes on change
9d59f2040a17Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#7165) Properties can invalidate scheduled refreshes on change

An invalidate_refreshes option can now be specified on newvalue calls inside
type definitions. When a property is changed to a value with this option set,
it causes all currently scheduled refreshes (from notify or subscribe) to be
discarded after evaluation of the resource.

This is designed for instances where a file resource is changed and refreshes
a service resource. The service itself would then be evaluated, the service is
started and then it would be refreshed, causing an additional restart. This
change allows a type definition to specify that a property change to a
particular value invalidates certain needless refreshes.

Details

Provenance
Dominic Cleal <dcleal@redhat.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Feb 11 2013, 8:20 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUcde7d61e831a: Merge branch 'b1-systems-fix_signal_handler'
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPU9d59f2040a17: (#7165) Properties can invalidate scheduled refreshes on change (authored by Dominic Cleal <dcleal@redhat.com>).Feb 11 2013, 8:20 PM