From: Marius Gavrilescu Date: Sun, 12 Apr 2015 14:58:53 +0000 (+0300) Subject: Fix rerun_job (twice) X-Git-Tag: 5999.000_014~25 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=686bacca70a42bb30472d8d1db02ed8ce77fda4d;p=gruntmaster-data.git Fix rerun_job (twice) --- diff --git a/lib/Gruntmaster/App/Command/Rerun.pm b/lib/Gruntmaster/App/Command/Rerun.pm index b5e98a8..a63800b 100644 --- a/lib/Gruntmaster/App/Command/Rerun.pm +++ b/lib/Gruntmaster/App/Command/Rerun.pm @@ -20,7 +20,7 @@ sub validate_args { sub execute { my ($self, $opt, $args) = @_; my ($obj) = @$args; - db->rerun_job($obj); + rerun_job $obj; } 1; diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 6ddada4..ea4fa3b 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -287,7 +287,7 @@ sub update_status { sub rerun_job { my ($id) = @_; - $db->query(rerun_job_sth => $id); + query rerun_job_sth => $id; purge '/log/'; purge "/log/$id"; }