Skip to content

Commit d6c8625

Browse files
emmaling27Convex, Inc.
authored and
Convex, Inc.
committed
change UDF_USE_FUNRUN to be a bool that is default true (#24046)
Change `UDF_USE_FUNRUN` knob from a float ratio to a bool. GitOrigin-RevId: aa4cb81c597631a9d6aa2a309034bb719b98c605
1 parent 319c9e2 commit d6c8625

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/common/src/knobs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,9 @@ pub static MIN_COMPACTION_SEGMENTS: LazyLock<usize> =
753753
pub static MAX_SEGMENT_DELETED_PERCENTAGE: LazyLock<f64> =
754754
LazyLock::new(|| env_config("MAX_SEGMENT_DELETED_PERCENTAGE", 0.2));
755755

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

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

0 commit comments

Comments
 (0)