Commit Graph

145 Commits

Author SHA1 Message Date
Guillaume Bouvignies
aefa43dcaf fix: Fix error handler token injection (#2598)
* fix: Fix error handler token injection

* Add frontend
2023-11-09 11:58:45 +01:00
Guillaume Bouvignies
fc874132c0 fix: Frontend workspace error handler args (#2597)
* fix: Frontend workspace error handler args

* UPdate script version

* 6512
2023-11-09 11:04:54 +01:00
Ruben Fiszel
8a7fe93559 feat: add support for flows in vscode extension (#2585)
* all

* change tagline

* all

* all

* all
2023-11-07 20:16:01 +01:00
Ruben Fiszel
7f9e8bf4b0 fix compile 2023-11-07 09:42:28 +01:00
Guillaume Bouvignies
83f9ef34e6 feat: Add toggle to optionally mute error handler for cancelled jobs (#2567)
* fix: Fix canceled flag in completed_job table

* Add toggle to workspace settings
2023-11-06 18:24:51 +01:00
Ruben Fiszel
141f45bf95 fix: improve dedicated workers 2023-11-06 11:21:36 +01:00
Guillaume Bouvignies
668c9da646 feat: Schedule error handler improvements (#2555)
* Fix schedule path for scheduled scripts

* feat: Add possibility to mute workspace error handler on schedules and define an error/recovery handler as default

* Permission error handlers to the error handler group for consistency, and small refactoring

* Fix recovery handler

* Add parent job to recovery handler for consistency

* Fix tests

* Locking feature to EE in FE
2023-11-04 00:52:37 +01:00
Guillaume Bouvignies
7ba2a6c4f1 fix: Slack error handler missing "slack" arg (#2546) 2023-11-02 22:33:16 +01:00
Guillaume Bouvignies
c31299bed8 feat: Ability to restart flow on loop/branchall iteration (#2526)
* feat: Ability to restart flow on loop/branchall iteration

* Add popover to frontend

* refresh restart button onSelectedJobStepChange

* Display branch names for branchall

* Fix flow preview

* Fix compile break

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2023-10-31 15:27:54 +01:00
Guillaume Bouvignies
729bf59558 chore: Add restarted flow test in worker.rs (#2524)
* chore: Add restarted flow test in worker.rs

* small refactor to rust code

* Fix unused imports
2023-10-31 09:14:14 +01:00
Guillaume Bouvignies
76a736aee6 feat: Restartable flows (#2514)
* feat: Restartable flows for simple sequential flows

* check if status of previous module to initialize last_result

* compute result of forloop flows when needed

* Add possibility to restart a flow preview

* Re-compute leaf jobs when needed

* FE polishing

* Add tooltip on button and fix module not found error in preview

* Handle ListJob when computing leaf job from db

* Fix unused imports

* ./build_openapi.sh

* sqlx prepare
2023-10-30 12:51:56 +01:00
Ruben Fiszel
f5eeccad24 associate metrics with tags and not langs anymore 2023-10-26 23:52:37 +02:00
Ruben Fiszel
dc10aaa660 associate metrics with tags and not langs anymore 2023-10-26 23:44:25 +02:00
Ruben Fiszel
55ceca1913 fix: move keep job directories and expose debug metrics to instance settings UI 2023-10-26 13:08:39 +02:00
Ruben Fiszel
ea28163865 fix: prometheus metrics are an instance settings 2023-10-25 23:32:47 +02:00
Ruben Fiszel
d44b078e70 fix: improve concurrency limit lock 2023-10-25 00:17:38 +02:00
Guillaume Bouvignies
51f2198c34 feat: Priority worker tags (#2504)
* feat: Priority worker tags

* Fix deprecation warning

* fix tests by initializing the WorkerConfig properly
2023-10-24 17:59:31 +02:00
Guillaume Bouvignies
f428581269 fix: Track job UUIDs in concurrency table instead of a simple counter (#2498)
* fix: Track job UUIDs in concurrency table instead of a simple counter

* sqlx prepare
2023-10-24 09:28:46 +02:00
Ruben Fiszel
1ec56c0e23 fix: improve flow performance at high-throughput 2023-10-24 00:11:30 +02:00
Ruben Fiszel
d215bd18f7 remove spurious tracing::error 2023-10-23 19:46:37 +02:00
Ruben Fiszel
44c3c96d3e fix: fix include_header 2023-10-23 17:04:16 +02:00
Guillaume Bouvignies
3f4af48b0b feat: Priority queue (#2476)
* BE v1 for priority queue

* Add FE prototype

* sqlx prepare

* Disply priority badge in job detail view

* sqlx prepare post merge

* Add priority number input field next to toggle

* increase dnd timeout for app events

* Update db migration

* Fix FE import

* Add badge to script/flow details page and fix EE-only mention in tooltip

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2023-10-23 14:22:59 +02:00
Guillaume Bouvignies
9442068374 feat: Approval step optionally require logged-in user (#2462)
* backend auth user validation

* Approval page suggesting login

* BE impl to support groups

* Add FE for setting suspend on flow step

* handle admin as a specific case

* restrict feature to entperprise only

* group names as static input transforms

* Suspend settings with tabs

* Update enterprise edition check

* cleanup

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2023-10-20 00:20:20 +02:00
Guillaume Bouvignies
2dc75f0f65 feat: Mute workspace error handler for flows and scripts (#2458)
* feat: Mute workspace error handler for flows and scripts

* implement BE muting

* Add tooltip to bell icon

* change field name to ws_error_handler_muted

* revert new field for queue table

* Error when error handler not set

* extract svelte component and use flow table column

* Fix flow error handler result arg
2023-10-17 22:07:13 +02:00
Ruben Fiszel
e8badf26e6 improve error tracing 2023-10-16 19:45:43 +02:00
Ruben Fiszel
719cde60cc improve error handling after refactor 2023-10-16 18:40:01 +02:00
Ruben Fiszel
9314d38bf1 feat: refactor entirely json processing in favor or rawjson to handle larger payloads (#2446)
* raw json

* raw json

* raw json

* raw json

* the big rawjson rewrite

* resolve merge conflicts

* all

* progress

* progress

* all compile

* remove mut

* remove mut

* remove mut

* arc queuedjob

* finish

* finish

* finish

* fixes

* progress

* fix result

* small fixes

* small fixes

* fix tests

* fix tests

* fix tests

* optimize eval timeout

* optimize eval timeout

* optimize eval timeout

* handle big args and result in get jobs

* improve args

* fix

* fix

* fix tests

* fix tests

* done

* add bigquery to native picker

* add bigquery

---------

Co-authored-by: gbouv <guillaume@windmill.dev>
2023-10-16 10:46:55 +02:00
Guillaume Bouvignies
b7ce7f0b18 fix: Workspace error handler extra args are passed to job (#2452) 2023-10-13 20:48:56 +02:00
Guillaume Bouvignies
a1d6799625 feat: Improve Slack schedule error handler and default to it (#2439)
* feat: Improve Slack schedule error handler and default to it

* refactor BE to re-use existing logic to handle error

* Fix svelte error
2023-10-12 15:11:05 +02:00
Ruben Fiszel
21454a7a05 fix: improve handling of large results by frontend 2023-10-08 15:37:10 +02:00
HugoCasa
f68cee4ebd fix: tag id as flow (#2318) 2023-09-21 18:20:34 +02:00
HugoCasa
c549239684 feat: dedicated benchmarks (#2297)
* feat: dedicated benchmarks

* feat: dedicated benchmarks

* fix: build

* fix: use ee for ci

* fix: ci

* fix: handle create jobs error

* fix: nits
2023-09-19 14:03:19 +02:00
Ruben Fiszel
7e404eb2fc fix concurrency limit with jobs scheduled in the future 2023-09-15 23:42:44 +02:00
Ruben Fiszel
03f75bc873 fix tests 2023-09-15 09:30:33 +02:00
Ruben Fiszel
c0284ea356 fix migraiton 2023-09-14 11:44:36 +02:00
Ruben Fiszel
3792a2d7f3 fix migration 2023-09-14 11:32:52 +02:00
Ruben Fiszel
080b8f324b fix migration 2023-09-14 11:28:06 +02:00
Ruben Fiszel
070b16222b feat: worker groups admin panel (#2277)
* merge

* merge

* merge

* wg

* progress

* all

* all

* all

* all

* all

* all

* fix

* fix
2023-09-13 21:24:54 +02:00
Ruben Fiszel
22a7da58b1 feat: zero copy result for job result (#2263)
* feat: zero copy result for job result

* update
2023-09-11 08:00:02 +02:00
Ruben Fiszel
e220dc2869 improve benchmarks 2023-09-08 17:32:26 +02:00
Ruben Fiszel
c80f155602 feat: dedicated workers for native-throughput performance (EE only) (#2239)
* dedicated worker

* dedicated worker

* merge

* progress

* progress

* progress

* merge

* update

* sqlx

* fix imports
2023-09-06 10:32:53 +02:00
Ruben Fiszel
dff1cd9a64 feat: submit result in background thread (unify architecture for dedicated worker) (#2226)
* merge

* all

* all
2023-09-04 01:56:23 +02:00
Ruben Fiszel
069e2d18d5 perf: improve queue performance (#2222)
* benchs

* progress

* prog

* progress

* progress

* progress

* update

* progress

* progress

* progress

* progress

* progress

* all

* all

* improve queries

* improve queries

* rm imv

* all

* all
2023-09-03 09:44:16 +02:00
Ruben Fiszel
ada88a2bf9 feat: improve queue performance when queue grows large 2023-08-31 23:41:04 +02:00
Ruben Fiszel
276cd6dac3 feat: add workspace variable to worker tag 2023-08-31 11:00:57 +02:00
Ruben Fiszel
03e48a4ca5 feat: add caching to flows and scripts (#2193)
* cachettl

* all
2023-08-29 13:00:20 +02:00
Ruben Fiszel
d0d041fde3 feat: concurrency limits for flows 2023-08-28 16:02:48 +02:00
Ruben Fiszel
033f675484 fix cancel jobs 2023-08-27 15:09:54 +02:00
Ruben Fiszel
0dfdf8fa1b fix: canceling jobs 2023-08-27 14:40:20 +02:00
Ruben Fiszel
f5121e9066 feat: lock inline scripts for apps on deploy 2023-08-26 09:12:19 +02:00