Commit Graph

153 Commits

Author SHA1 Message Date
Ruben Fiszel c1bb97d990 fix: fix error handling for list of errors 2023-11-21 15:24:38 +01:00
Ruben Fiszel 6dd91adb13 add more logs around completed job 2023-11-21 14:25:48 +01:00
Ruben Fiszel 9c7bb5ecd9 fix: www-url-encoded body 2023-11-17 16:59:26 +01:00
Ruben Fiszel 316d5f344f fix: improve suspended flow handling when missing next step 2023-11-17 13:13:05 +01:00
Ruben Fiszel b13cc58315 feat: dedicated workers for flows (#2637)
* dw for flows

* dw for flows

* all

* sqlx

* sqlx

* dedicated workers

* more comments
2023-11-17 10:00:04 +01:00
HugoCasa f38498b725 feat: sync team plans (#2619)
* feat: sync team plans

* fix: migration

* fix: remove sub id + set billing cycle

* fix: msg

* feat: add overquota state

* fix: minor

* fix: overall improvements

* fix: sql prepare

* fix: disable seats warning for enterprise

* fix: use lazy static everywhere
2023-11-15 19:36:17 +01:00
Ruben Fiszel 929616d730 apply enterprise limits 2023-11-11 09:46:09 +01:00
Guillaume Bouvignies f336a3c0ed refactor: Slack error handler is handled mostly in frontend (#2601)
* refactor: Slack error handler is handled mostly in frontend

* sqlx prepare

* check for slack in function
2023-11-09 18:17:28 +01:00
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