[ARVADOS] updated: 34df3cb56d837687c47931dcaba3acdad81fd1ad

Git user git at public.curoverse.com
Fri May 20 15:03:26 EDT 2016


Summary of changes:
 services/keep-balance/main.go | 5 +++++
 1 file changed, 5 insertions(+)

       via  34df3cb56d837687c47931dcaba3acdad81fd1ad (commit)
      from  de03c92e6887f1ba9fa05d39e2ce1e5bd9354966 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 34df3cb56d837687c47931dcaba3acdad81fd1ad
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri May 20 14:51:03 2016 -0400

    9162: Warn if running as a service without committing.

diff --git a/services/keep-balance/main.go b/services/keep-balance/main.go
index d5f243c..9404398 100644
--- a/services/keep-balance/main.go
+++ b/services/keep-balance/main.go
@@ -114,6 +114,11 @@ func RunForever(config Config, runOptions RunOptions) error {
 	log.Printf("starting in service mode, running every %v and on SIGUSR1", config.RunPeriod)
 
 	for {
+		if !runOptions.CommitPulls && !runOptions.CommitTrash {
+			log.Print("WARNING: Running in service mode, but no changes will be committed.")
+			log.Print("=======  Consider using -commit-pulls and -commit-trash flags.")
+		}
+
 		err := (&Balancer{}).Run(config, runOptions)
 		if err != nil {
 			log.Print("run failed: ", err)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list