Commit Graph
55 Commits
Author SHA1 Message Date
HugoCasa 1d71154c99 feat: flow copilot (#2219)
* chore: refactoring

* feat: hub embeddings search benchmark

* feat: flow copilot v0

* feat: as trigger schedule + refactoring

* feat: improvements

* fix: remove unecessary filter

* feat: UX improvements

* fix: frontend check

* feat: switch to bun + other improvements

* fix: improve reactivity
2023-09-07 18:03:48 +02:00
Ruben Fiszel 8d62fbdbdc feat: add caching to flows and scripts (#2193)
* cachettl

* all
2023-08-29 13:00:20 +02:00
Ruben Fiszel ab27adc87e feat: early stop for flows 2023-08-28 17:46:16 +02:00
Ruben Fiszel 11c8f90daf feat: concurrency limits for flows 2023-08-28 16:02:48 +02:00
Ruben Fiszel 06006f1c7e feat: add parallelism control to forloops 2023-08-27 23:03:19 +02:00
Ruben Fiszel 3d79187f31 feat: lock inline scripts for apps on deploy 2023-08-26 09:12:19 +02:00
Ruben Fiszel c77d38563d remove unecessary postgres transactions and improve performance 2023-08-22 00:34:44 +02:00
Ruben Fiszel e41a3fc1d2 improve sql query performances 2023-08-20 18:06:59 +02:00
Ruben Fiszel 9970f6daeb feat: migrate state path to new schema 2023-08-11 18:54:47 +02:00
Ruben Fiszel 832c988681 fix: fix clear schedule to be workspace specific 2023-08-08 14:10:56 +02:00
Ruben Fiszel 68a4e327a6 fix: fix draft permissions (require writer instead of owner) 2023-08-01 17:02:29 +02:00
Ruben Fiszel b0660619c8 feat: add step's custom timeout 2023-07-30 20:42:24 +02:00
Ruben Fiszel 838266bb2f feat: lock depedency for the entire flow + dependency job depend on script/flow's tag 2023-07-26 21:14:14 +02:00
Ruben Fiszel 28933d09cc UX nits + fix flow worker group 2023-07-25 16:14:23 +02:00
Ruben Fiszel af7c92ac16 feat: worker group for flows 2023-07-25 12:41:51 +02:00
223b80768a chore(backend): upgrade sqlx to ^0.7 (#1865)
* DRAFT chore(backend): upgrade sqlx to ^0.7

related to:
* https://github.com/windmill-labs/windmill/pull/1858
* https://github.com/launchbadge/sqlx/issues/1163#issuecomment-1627685514

* (vol. 2) in 0.7, `Transaction` can no longer implement `Executor` directly

ref: https://github.com/launchbadge/sqlx/blob/afb6b1066e61f8e3875f530d96cfb5a299f13fda/examples/postgres/transaction/src/main.rs#L14-L17

notice that I'm temporarly using my custom patch
https://github.com/mrl5/sqlx/commit/16e4c9a8f380214ad61b1744d3e1f5fa866ffbcc
it's related to https://github.com/launchbadge/sqlx/issues/2611

* post git rebase chores

* use upstream fix from 0.7.1

* fix compile

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-07-15 14:06:20 +02:00
Guillaume Bouvignies 0327b85f89 feat: Per script concurrency limit with time window (#1816)
* Add concurrency a per-script concurrency limit

* Add a per-script per time window concurrency limit

* Improve feature with a better estimation of the next schedule timestamp

* Add concurrency limits for inline scripts

* Fix tests

* run sqlx prepare

* Add requeue event to job logs
2023-07-11 23:35:26 +02:00
Ruben Fiszel 734f75d493 feat: step mocking for flows 2023-06-22 12:01:08 +02:00
Ruben Fiszel 027fa6ff09 feat: add cache as a primitive for flows (#1671)
* feat: add cache as a primitive for flows

* fix failure module
2023-06-04 14:39:10 +02:00
Ruben Fiszel 9ea18b4593 feat(backend): add job_id as a query arg to force set the new job_id 2023-05-15 10:50:43 +02:00
Ruben Fiszel 73c5a7473d feat: add drafts for apps 2023-05-01 18:13:57 +02:00
Ruben Fiszel 8d3416e525 feat: introduce draft for flows 2023-05-01 09:31:22 +02:00
Ruben Fiszel 91b8b3eb0a fix flow update update schedules 2023-04-30 16:18:43 +02:00
Ruben Fiszel ec89b656b6 feat: introduce backend persisted draft systems for scripts 2023-04-30 15:56:52 +02:00
Ruben Fiszel 02ba82064f feat(backend): worker groups (#1452)
* tagged scripts

* tagged scripts

* fix

* fix

* fix

* all

* update sqlx
2023-04-23 16:57:23 +02:00
Ruben Fiszel 4c33daaba0 rework ownership permissions 2023-04-15 23:03:16 +02:00
Ruben Fiszel be41e45130 split worker.rs into more files 2023-04-13 17:44:47 +02:00
4e74266761 feat: inputs library on run page
* display previous script inputs on script run page

* parallelise loading

* parallelise loading

* also working for flows

* separate endpoints for scripts and flows

* Splitpanes and Saved Inputs (UI)

* Saved inputs API endpoints

* Editable Input name

* Narrow width styling

* feat(frontend): Add a toggle to open the saved inputs (#1401)

* feat(frontend): Add a toggle to open the saved inputs

* feat(frontend): Add a toggle to open the saved inputs

* feat(frontend): Move toggle

* update all

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
2023-04-12 17:29:06 +02:00
Kai JellinghausandRuben Fiszel 63102b036c feat(backend): Redis based queue (#1324)
* Merge?

* Fix V8 breaking change

* WIP

* WIP

* Cleanup

* Move to git reference

* Fix Merge conflict

* update

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-04-11 12:24:13 +02:00
Ruben Fiszel 3f1fd31e1b remove backend warnings & fix test 2023-04-02 13:56:16 +02:00
Ruben Fiszel 124775a26d refresh folders more aggressively in case a non non just created one 2023-04-02 12:08:52 +02:00
Ruben Fiszel 77079b4b68 consistent sort + minor nits 2023-03-30 17:27:21 +02:00
Ruben Fiszel 2809ef905b fix serde test 2023-03-10 12:19:56 +01:00
Ruben Fiszel 0263c20a5b introduce root_job and leaf_jobs for efficient result_by_id 2023-03-03 12:44:44 +01:00
Ruben Fiszel d1be3192ea remove references to starter workspace' 2023-02-22 13:56:24 +01:00
Ruben Fiszel 29d0cc620f feat: add delete flows 2023-02-22 08:40:11 +01:00
Ruben Fiszel 69d4a23b4f send a webhook on new user + lazy static refactor (#1203)
* supercharge

* supercharge

* progress

* progress

* display config

* display config

* display config

* display config

* fix extensions

* fix build

* disable nsjail = false for test
2023-02-15 10:59:50 +01:00
Kai JellinghausandRuben Fiszel f0e3bc090e feat: Add workspace webhook (#1158)
* Add workspace webhook

* Update SQLX

* Add webhook request histogram

* Move workspace webhook retrieval OOP

* Add removal to frontend, cache removed webhooks

* Remove WebhookUtil

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-02-03 19:50:18 +01:00
Ruben Fiszel 49aeed88fa fix permissioned_as from username 2023-01-17 12:49:24 +01:00
Ruben Fiszel 13175ffc31 various improvements 2023-01-10 11:21:16 +01:00
Ruben Fiszel 79149c2899 fix: preserver order changes for flows' schema 2023-01-02 04:43:28 +01:00
Ruben Fiszel f9b7901d8e make ownership check more consistent, expose ownership api, expose update folder api 2022-12-22 14:48:57 +01:00
Ruben Fiszel cb20d795a2 improve error message for already existing items 2022-12-20 12:52:18 +01:00
Ruben Fiszel 6e2890f0f1 require ownership to move items && automatically edit schedule paths 2022-12-18 18:45:32 +01:00
Ruben Fiszel 59a3ba0a25 add visible_to_owner 2022-12-15 16:01:17 +01:00
Ruben Fiszel 039e1fa1e6 feat: implement usage tracker + quotas 2022-12-11 18:47:39 +01:00
Kai Jellinghaus b87fc7796a feat(backend): Input transform errors (#1006)
* Add pre run error & propagate input transforms there

* Handle pre-run errors

* Update SQLX data

* Update SQLX data
2022-12-08 23:56:49 +01:00
Ruben Fiszel fa7e8d107b feat: add lockable version to scripts inside flows (#972)
* add it to openflow

* push

* push

* final
2022-12-06 13:11:11 +01:00
Ruben Fiszel 018f8896bc feat: add include_header to pass request headers to script 2022-12-05 23:36:31 +01:00
Ruben Fiszel b40f9a0475 favorites on the sidebar 2022-11-30 01:47:29 +01:00