Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Factotum webhook payload is too large (closes #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ungn committed Mar 16, 2017
1 parent 1bb8599 commit af443fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/factotum/webhook/jobupdate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static JOB_UPDATE_SCHEMA_NAME: &'static str = "iglu:com.snowplowanalytics.\
static TASK_UPDATE_SCHEMA_NAME: &'static str = "iglu:com.snowplowanalytics.\
factotum/task_update/jsonschema/1-0-0";

const MAX_STDOUT_STDERR_SIZE: usize = 10_000; // 10kb
const MAX_STDOUT_STDERR_SIZE: usize = 4_000; // 4kb

use factotum::executor::{ExecutionState, ExecutionUpdate, TaskSnapshot,
Transition as ExecutorTransition};
Expand Down
4 changes: 2 additions & 2 deletions src/factotum/webhook/jobupdate/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ fn big_task_stdout_trimmed() {

let now = UTC::now();

let max_len = 10000;
let max_len = 4000;

example_tasks[0].state = State::Success;
example_tasks[0].run_started = Some(now.clone());
Expand Down Expand Up @@ -373,7 +373,7 @@ fn big_task_stderr_trimmed() {

let now = UTC::now();

let max_len = 10000;
let max_len = 4000;

example_tasks[0].state = State::Success;
example_tasks[0].run_started = Some(now.clone());
Expand Down

0 comments on commit af443fa

Please sign in to comment.