Skip to content

Commit

Permalink
change UDF_USE_FUNRUN to be a bool that is default true (#24046)
Browse files Browse the repository at this point in the history
Change `UDF_USE_FUNRUN` knob from a float ratio to a bool.

GitOrigin-RevId: aa4cb81c597631a9d6aa2a309034bb719b98c605
  • Loading branch information
emmaling27 authored and Convex, Inc. committed Mar 27, 2024
1 parent 319c9e2 commit d6c8625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/common/src/knobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,9 @@ pub static MIN_COMPACTION_SEGMENTS: LazyLock<usize> =
pub static MAX_SEGMENT_DELETED_PERCENTAGE: LazyLock<f64> =
LazyLock::new(|| env_config("MAX_SEGMENT_DELETED_PERCENTAGE", 0.2));

/// Defines the fraction of UDF requests to send to Funrun vs
/// InProcessFunctionRunner in backend.
pub static UDF_USE_FUNRUN: LazyLock<f64> = LazyLock::new(|| env_config("UDF_USE_FUNRUN", 0.));
/// Whether to run queries, mutations, and v8 actions in Funrun (true) or
/// InProcessFunctionRunner (false).
pub static UDF_USE_FUNRUN: LazyLock<bool> = LazyLock::new(|| env_config("UDF_USE_FUNRUN", true));

/// The amount of time to wait for the primary request to finish before starting
/// a second backup request when running a vector search.
Expand Down

0 comments on commit d6c8625

Please sign in to comment.