diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-05-02 18:48:39 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-05-02 20:48:05 +0100 |
commit | 9b6a6fd63daacf67cddb4f5ab7bbcd0375082696 (patch) | |
tree | 2f832a82aac5ce6050090a3d250b7bec93274902 /perllib/FixMyStreet/SendReport/Open311.pm | |
parent | c4b3f85594e91c772011dffef2da2498ee5c8a5e (diff) |
Consolidate sending backoff for different types of sender.
Diffstat (limited to 'perllib/FixMyStreet/SendReport/Open311.pm')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Open311.pm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm index 1ad7f5b05..9cdb7c4b4 100644 --- a/perllib/FixMyStreet/SendReport/Open311.pm +++ b/perllib/FixMyStreet/SendReport/Open311.pm @@ -13,17 +13,6 @@ use Readonly; Readonly::Scalar my $COUNCIL_ID_OXFORDSHIRE => 2237; -sub should_skip { - my $self = shift; - my $row = shift; - - if ( $row->send_fail_count > 0 ) { - if ( bromley_retry_timeout($row) ) { - return 1; - } - } -} - sub send { my $self = shift; my ( $row, $h ) = @_; @@ -164,17 +153,4 @@ sub send { return $result; } -sub bromley_retry_timeout { - my $row = shift; - - my $tz = DateTime::TimeZone->new( name => 'local' ); - my $now = DateTime->now( time_zone => $tz ); - my $diff = $now - $row->send_fail_timestamp; - if ( $diff->in_units( 'minutes' ) < 30 ) { - return 1; - } - - return 0; -} - 1; |