fix: reduce aggregate period to list users in workspace
This commit is contained in:
1
.github/workflows/docker-image.yml
vendored
1
.github/workflows/docker-image.yml
vendored
@@ -96,6 +96,7 @@ jobs:
|
||||
uses: depot/build-push-action@v1
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
build-args: |
|
||||
features=enterprise
|
||||
|
||||
@@ -717,7 +717,7 @@ async fn list_users(
|
||||
WHERE workspace_id = $1
|
||||
AND job_kind NOT IN ('flow', 'flowpreview')
|
||||
AND email = usr.email
|
||||
AND now() - '5 week'::interval < created_at
|
||||
AND now() - '1 week'::interval < created_at
|
||||
) usage
|
||||
WHERE workspace_id = $1
|
||||
",
|
||||
|
||||
@@ -441,7 +441,7 @@ pub async fn eval_fetch_timeout(
|
||||
let (sender, mut receiver) = oneshot::channel::<IsolateHandle>();
|
||||
let ts_expr2 = ts_expr.clone();
|
||||
timeout(
|
||||
std::time::Duration::from_millis(100000),
|
||||
std::time::Duration::from_secs(100),
|
||||
tokio::task::spawn_blocking(move || {
|
||||
let ops = vec![op_get_static_args::DECL, op_log::DECL];
|
||||
let ext = Extension {
|
||||
@@ -536,7 +536,7 @@ pub async fn eval_fetch_timeout(
|
||||
isolate.terminate_execution();
|
||||
};
|
||||
Error::ExecutionErr(format!(
|
||||
"The expression of evaluation `{ts_expr2}` took too long to execute (>10000ms)"
|
||||
"The expression of evaluation `{ts_expr2}` took too long to execute (>100s)"
|
||||
))
|
||||
})??
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<Cell head>Username</Cell>
|
||||
|
||||
<Cell head>
|
||||
Executions (<abbr title="past 5 weeks">5w</abbr>)
|
||||
Executions (<abbr title="past 1w">1w</abbr>)
|
||||
<Tooltip light>
|
||||
An execution is calculated as 1 for any runs of scripts + 1 for each seconds above the
|
||||
first one
|
||||
|
||||
Reference in New Issue
Block a user