From 1917f02cd5e18b7449d495f35eba55c6bc733eba Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 14 Apr 2015 15:52:55 -0400 Subject: comment --- ...ent_3_06c63446531f56e4c93f64f6bcfba2b1._comment | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__/comment_3_06c63446531f56e4c93f64f6bcfba2b1._comment (limited to 'doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__') diff --git a/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__/comment_3_06c63446531f56e4c93f64f6bcfba2b1._comment b/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__/comment_3_06c63446531f56e4c93f64f6bcfba2b1._comment new file mode 100644 index 00000000..144915df --- /dev/null +++ b/doc/forum/my_experience_with_propellor:_how_to_run_a_single_task_on_a_host__63__/comment_3_06c63446531f56e4c93f64f6bcfba2b1._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2015-04-14T19:42:22Z" + content=""" +[period](http://hackage.haskell.org/package/propellor-2.2.1/docs/Propellor-Property-Scheduled.html) +is not a cron job, it just modifies the Property to only do anything +every so often. + +It's also possible to modify a Property so it only runs once. +[flagFile](http://hackage.haskell.org/package/propellor-2.2.1/docs/Propellor-Property.html#v:flagFile) +can be used to do that. + +But there are good reasons for propellor to default to checking all +Properties of a system each time: + +* It means that most Properties are idempotent, which has many good + features, like being able to recover from a crash. +* If a system no longer has a configured Property, to fix it back to having + the property it's supposed to have. +* Or, if it can't be fixed, to tell you with an error message in red. +* It keeps propellor mostly stateless; rather than having to record state + about how it thinks a system is, which could diverge from reality, + it just looks at how it actually is. +"""]] -- cgit v1.2.3