Loading lib/Travelynx/Command/traewelling.pm +9 −2 Original line number Diff line number Diff line Loading @@ -126,10 +126,17 @@ sub run { if ( not $direction or $direction eq 'pull' ) { $report .= ",pull_runtime_seconds=${trwl_pull_duration}"; } if ( $self->app->mode eq 'development' ) { $self->app->log->debug( 'POST ' . $self->app->config->{influxdb}->{url} . " traewelling ${report}" ); } else { $self->app->ua->post_p( $self->app->config->{influxdb}->{url}, "traewelling ${report}" )->wait; } } } 1; Loading lib/Travelynx/Command/work.pm +11 −3 Original line number Diff line number Diff line Loading @@ -184,10 +184,18 @@ sub run { my $worker_duration = $main_finished_at->epoch - $started_at->epoch; if ( $self->app->config->{influxdb}->{url} ) { if ( $self->app->mode eq 'development' ) { $self->app->log->debug( 'POST ' . $self->app->config->{influxdb}->{url} . " worker runtime_seconds=${worker_duration},errors=${errors}" ); } else { $self->app->ua->post_p( $self->app->config->{influxdb}->{url}, "worker runtime_seconds=${worker_duration},errors=${errors}" ) ->wait; } } if ( not $self->app->config->{traewelling}->{separate_worker} ) { $self->app->start('traewelling'); Loading Loading
lib/Travelynx/Command/traewelling.pm +9 −2 Original line number Diff line number Diff line Loading @@ -126,10 +126,17 @@ sub run { if ( not $direction or $direction eq 'pull' ) { $report .= ",pull_runtime_seconds=${trwl_pull_duration}"; } if ( $self->app->mode eq 'development' ) { $self->app->log->debug( 'POST ' . $self->app->config->{influxdb}->{url} . " traewelling ${report}" ); } else { $self->app->ua->post_p( $self->app->config->{influxdb}->{url}, "traewelling ${report}" )->wait; } } } 1; Loading
lib/Travelynx/Command/work.pm +11 −3 Original line number Diff line number Diff line Loading @@ -184,10 +184,18 @@ sub run { my $worker_duration = $main_finished_at->epoch - $started_at->epoch; if ( $self->app->config->{influxdb}->{url} ) { if ( $self->app->mode eq 'development' ) { $self->app->log->debug( 'POST ' . $self->app->config->{influxdb}->{url} . " worker runtime_seconds=${worker_duration},errors=${errors}" ); } else { $self->app->ua->post_p( $self->app->config->{influxdb}->{url}, "worker runtime_seconds=${worker_duration},errors=${errors}" ) ->wait; } } if ( not $self->app->config->{traewelling}->{separate_worker} ) { $self->app->start('traewelling'); Loading