grav icon indicating copy to clipboard operation
grav copied to clipboard

[Feature request] setEnabled method for scheduler Job class

Open hughbris opened this issue 2 years ago • 1 comments

Job objects have a getEnabled() method, but there is no setter and there's nothing in the constructor to set $enabled, unlike some of the other private properties.

I want to be able to create Jobs programmatically that are in a disabled state.

I can easily make a PR, just thought I'd get agreement first. Maybe there was no good reason for it to be private??

hughbris avatar Mar 10 '22 10:03 hughbris

I think I am coming to the understanding now that this is a reading and runtime manipulation API, not for altering job config. Am I right? Happy for this to be set closed/invalid if so.

hughbris avatar Mar 11 '22 01:03 hughbris