Commit Graph

477 Commits

Author SHA1 Message Date
Guillaume Bouvignies
0d846b310d fix: Pythong script in dedicated worker fails with more than 1 arg (#2588) 2023-11-08 10:08:42 +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
Tsvetomir Bonev
543fae77a7 fix: return non-integer sleep error directly (#2558) 2023-11-04 08:44:38 +01:00
Tsvetomir Bonev
6f47b96006 fix: fail on non-integer sleep value (#2556) 2023-11-04 00:49:57 +01:00
Ruben Fiszel
54f08122d2 fix: subflow with cache can not be considered simple 2023-11-03 22:06:49 +01:00
Ruben Fiszel
0f37439877 fix: support results[<x>] + export more metatada for scripts 2023-11-03 21:53:58 +01:00
Ruben Fiszel
75a5766f8b fix: make python imports work at any nesting level 2023-11-03 20:10:14 +01:00
Ruben Fiszel
7b5d47d122 deactive forloop pruning in-presence of sleep or suspend 2023-11-02 08:32:45 +01:00
Ruben Fiszel
b4d5c5add8 fix: fix powershell args passing 2023-11-01 17:19:15 +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
Ruben Fiszel
cf9669c18d feat: invalidate result cache on flow or script change 2023-10-31 12:49:31 +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
ed86a61cf0 improve slow pull metrics 2023-10-30 12:20:40 +01:00
Ruben Fiszel
f94c9f8ec5 nit metrics 2023-10-28 16:21:30 +02:00
Ruben Fiszel
2cec6a0971 add more metrics 2023-10-28 15:35:45 +02:00
Ruben Fiszel
23a6424125 add dedicated worker sender channel queue 2023-10-28 14:15:42 +02:00
Ruben Fiszel
b8883481f4 feat: refactor metrics and add performance debug metrics (#2520)
* all

* feat: add debug metrics
2023-10-27 21:00:28 +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
53c38f9176 improve key not found error 2023-10-25 09:59:49 +02:00
Ruben Fiszel
402193cef9 fix: do not share http_client in js_eval runtime 2023-10-25 09:51:20 +02:00
Guillaume Bouvignies
927cbbe230 fix: concurrency limit EE feature warning (#2505)
* fix: concurrency limit EE feature warning

* fix deprecated usage

* skip serializing empty optional
2023-10-24 17:59:16 +02:00
Ruben Fiszel
39f30785a0 feat: dedicated worker for python (#2492)
* update

* all
2023-10-23 20:21:16 +02:00
HugoCasa
7037d70ca2 feat: add unique id (#2483)
* feat: add unique id

* fix: sqlx prepare

* feat: add disable option

* fix: cron schedule
2023-10-23 17:05:54 +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
Ruben Fiszel
2b7018413a feat: dragndrop component on creation 2023-10-21 22:50:19 +02:00
Ruben Fiszel
cef2949497 fix: allow superadmin to run inline scripts in repo they are not part of 2023-10-21 14:48:51 +02:00
Ruben Fiszel
656cb83d6b fix: fix app reactivity 2023-10-21 14:33:07 +02:00
Guillaume Bouvignies
1200add2a7 feat: Flow approvers user groups can be JS InputTransforms (#2468)
* 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

* FE InputTransformForm

* BE InputTransform

* Fix FE

* cleanup

* ArgInput list multiselect

* cleanup

* reset vscode settings
2023-10-20 01:39:31 +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
Ruben Fiszel
acbe1298fc fix: fix handling of undefined values in input transforms by serde 2023-10-19 15:37:15 +02:00
Ruben Fiszel
f9045dc70f fix: fix mocking for workflows 2023-10-18 21:44:10 +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
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
Ruben Fiszel
2d9878647b make bun cache rw on nsjail 2023-10-12 02:03:31 +02:00
Ruben Fiszel
ec02f9b140 fix bun on nsjail 2023-10-11 23:13:10 +02:00
Guillaume Bouvignies
e960efb499 Better error when executable not found (#2407)
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2023-10-09 18:06:05 +02:00
Ruben Fiszel
21454a7a05 fix: improve handling of large results by frontend 2023-10-08 15:37:10 +02:00
Ruben Fiszel
2c9ae41706 feat: manage cache and init scripts from worker group UI (#2396)
* cache & inits

* cache & inits

* cache & inits

* all

* fix tests

* improve
2023-10-05 19:42:15 +02:00
HugoCasa
768f972cbf fix: add numeric, array and date types (#2379)
* fix: add numeric, array and date types

* fix: update parser npm
2023-10-05 09:13:56 +02:00
HugoCasa
e7165f3357 fix: add reserved variables in args (#2371)
* fix: add reserved variables in args

* fix: only get job when necessary
2023-10-03 18:14:37 +02:00
Ruben Fiszel
c42b8750f1 feat: add npm_config_registry support for bun, deno and being settable from UI (#2373)
* foo

* foo

* npm config
2023-10-02 14:45:29 +02:00
Ruben Fiszel
f97289a3d8 fix: fix 0 len flow module processing 2023-09-30 09:00:39 +02:00
Ruben Fiszel
db63eaf29c fix 0 len flow module processing 2023-09-30 08:50:32 +02:00
Ruben Fiszel
4931ed95c4 fix: remove shared http clients in rest runtime 2023-09-30 05:42:47 +02:00
Ruben Fiszel
56e38b2376 do not stop early if module is a flow step 2023-09-30 00:54:49 +02:00
Ruben Fiszel
be64f39416 fix build 2023-09-30 00:06:56 +02:00