Changeset 572

Show
Ignore:
Timestamp:
05/27/09 23:17:19 (6 months ago)
Author:
athomason
Message:

Support a task timeout.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Data/ObjectDriver/Driver/GearmanDBI.pm

    r570 r572  
    1111__PACKAGE__->mk_accessors(qw( 
    1212    dbi client func driver_arg enabled_cb uniqify_cb 
    13     on_exception_cb retry_count 
     13    on_exception_cb retry_count timeout 
    1414)); 
    1515 
     
    7575    $options{retry_count}  = $driver->retry_count 
    7676        if $driver->retry_count; 
     77    $options{timeout}      = $driver->timeout 
     78        if $driver->timeout; 
    7779 
    7880    my $res = $client->do_task( $func =>