From 3cbcb856411d9b2342b4e4430f94fc0d92718a57 Mon Sep 17 00:00:00 2001 From: Ruslan Ledesma Garza Date: Wed, 16 Jul 2014 13:27:59 -0500 Subject: [PATCH] Skip execution of sql script when already executed. --- python/londiste/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/londiste/setup.py b/python/londiste/setup.py index 055be922..d374d92e 100644 --- a/python/londiste/setup.py +++ b/python/londiste/setup.py @@ -572,7 +572,7 @@ class LondisteSetup(CascadeAdmin): q = "select * from londiste.execute_start(%s, %s, %s, true, %s)" res = self.exec_cmd(db, q, [self.queue_name, fname, sql, attrs.to_urlenc()], commit = False) ret = res[0]['ret_code'] - if ret >= 300: + if ret > 200: self.log.warning("Skipping execution of '%s'", fname) continue if attrs.need_execute(curs, local_tables, local_seqs): -- 2.39.5