Commit Graph

83 Commits

Author SHA1 Message Date
Guillaume Bouvignies 7c71b65a99 feat: Add default timeout for instance and custom timeout for scripts (#2811)
* feat: Add default timeout for instance and custom timeout for scripts

* final

* sqlx prepare

* Logs a warning in the job logs

* Fix merge

* JOB_DEFAULT_TIMEOUT is an optional

* Fix JOB_DEFAULT_TIMEOUT monitor loading

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-12-13 07:08:07 +01:00
Guillaume Bouvignies 346d9affa5 feat: Add possibility to delete flow step results when the flow is complete (#2806)
* feat: Add possibility to delete flow step results when the flow is complete

* Add third layer of tabs and gate feature to EE
2023-12-08 21:30:44 +01:00
Ruben Fiszel e3e25476bd multiple small fixes 2023-12-07 15:40:14 +01:00
Guillaume Bouvignies 925632ffd7 feat: CLI now accepts message arg for sync push (#2784) 2023-12-05 19:01:09 +01:00
Guillaume Bouvignies 2980402ca3 feat: History commit message can be updated from the UI (#2777)
* feat: History comit message can be updated from the UI

* Script version history

* Display commit message in left column

* Fix FE compile break

* sqlx prepare and fix openapi file
2023-12-05 15:45:36 +01:00
Ruben Fiszel 7beccdb886 feat: perpetual scripts 2023-12-04 19:46:43 +01:00
Guillaume Bouvignies bfb5eb27b5 feat: Add workspace settings to sync scripts/flows/apps to git repo on deployment (#2740)
* feat: Add workspace settings to sync script to git repo on deployment

* track deployment callback jobs in separate table

* sqlx prepare

* update deployment_metadata table

* Point to hub script

* Add details to the settings page and restrict to EE only

* cleanup unused impots

* Flows and Apps are now pushed to GH as well

* Ignore scripts/flows/apps located in private user folders
2023-12-04 14:26:27 +01:00
HugoCasa 4ad47d4981 fix: update deployed even when draft only (#2694)
* fix: update deployed even when draft only

* feat: create new when draft only and saving draft

* fix: nit

* fix: final fixes
2023-11-30 15:46:44 +01:00
Ruben Fiszel 1467c0c356 fix: trim .bun.ts for local imports 2023-11-27 00:59:14 +01:00
Ruben Fiszel 518a8396b3 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
Ruben Fiszel eeb6b8280a fix: fix delete schedule clear jobs 2023-11-15 13:13:24 +01:00
Ruben Fiszel 4b873a9f5f fix: improve display of optimized one-loops + dependency jobs of dedicated workers happen on dedicated worker 2023-11-10 15:14:22 +01:00
HugoCasa b076e093df 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 bd69bafe59 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
HugoCasa 0603fc82c9 feat: local hub embeddings search (#2463)
* feat: local hub embeddings search

* fix: cargo lock

* fix: sqlx prepare

* fix: cargo tinyvector

* feat: add DISABLE_EMBEDDING env var

* fix: cargo lock
2023-10-19 17:27:42 +02:00
Guillaume Bouvignies 09e29d6b3c 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 2ee57f3f84 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 bcdff7d6f1 Filter script kinds in the backend (#2450) 2023-10-13 20:34:39 +02:00
HugoCasa 2e60105beb feat: filter resource types passed to gpt-4 (#2430)
* feat: code gen filter resource types

* fix: minor

* feat: using snake case for flow inputs

* fix: filter resource types for python

* fix: correct resrouce type name + wmill import

* fix: disable automerge ci

* fix: remove unnecessary json parsing
2023-10-11 17:50:21 +02:00
Ruben Fiszel 76d9dcbe4a feat: code content search (#2367)
* code search

* foo

* foo

* all

* all
2023-10-01 21:03:08 +02:00
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 5ac99b817e 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 2895014b6e fix: relative imports in deno 2023-08-29 15:05:00 +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 5fd36052fa feat: add lockfile for deno + use npm module for deno for windmill-client 2023-08-26 11:14:01 +02:00
Ruben Fiszel c77d38563d remove unecessary postgres transactions and improve performance 2023-08-22 00:34:44 +02:00
Ruben Fiszel 1778ec1117 feat: respect lockfiles for bun 2023-08-12 20:49:36 +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 9df5ce28e5 initial python imports relative dependency resolver 2023-07-26 17:33:46 +02:00
Ruben Fiszel 35ea4f5f04 feat: add workspace specific tags 2023-07-26 17:33:46 +02:00
Jakub Kołodziejczak 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 7856bf67e9 feat: Front end for script concurrency limit (#1863)
* Front end for script concurrency limit

* Fix frontend

* sqlx prepare

* fix compile

* add flow inline scripts

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-07-13 17:32:08 +02:00
Ruben Fiszel b3fb69de40 improve schedule section of run page 2023-07-09 22:35:33 +02:00
Ruben Fiszel 41213a61aa feat: native fetch + native postgresql jobs (#1796)
* push

* test

* test

* done

* fix

* modify script lang enum

* fix tests

* update wasm

* fix tests
2023-07-04 19:39:59 +02:00
Ruben Fiszel 3f04436e0e fix: add NO_PROXY and make pip respect proxy args 2023-06-09 21:46:56 +02:00
Ruben Fiszel 21546d4550 fix backend compile 2023-06-06 11:01:49 +02:00
Ruben Fiszel 74254af71a migrate all jsonschema parser to wasms 2023-06-06 10:52:04 +02:00
Ruben Fiszel 1f8910d730 feat: migrate ts parser to wasm (#1686)
* migrate ts parser to wasm

* add wasm

* revert py
2023-06-06 09:44:38 +02:00
Ruben Fiszel 8c47957a02 feat: support custom env variables (#1675)
* custom envs

* feat: custom envs

* only on non cloud

* remove unecessary imports
2023-06-05 17:42:57 +02:00
Ruben Fiszel 5a2b8220dc make admins scripts/apps undeletable 2023-06-02 11:59:52 +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 56f4272a1b force raw path to ends with .py, .sh, .go, .ts 2023-05-11 11:00:01 +02:00
Ruben Fiszel 547b3d3cd8 fix show_archived 2023-05-02 14:12:06 +02:00
Ruben Fiszel 8d3416e525 feat: introduce draft for flows 2023-05-01 09:31:22 +02:00
Ruben Fiszel ec89b656b6 feat: introduce backend persisted draft systems for scripts 2023-04-30 15:56:52 +02:00
Ruben Fiszel d93b85c724 minor worker tags nit 2023-04-26 01:54:09 +02:00