Commit Graph
76 Commits
Author SHA1 Message Date
Ruben Fiszel 59d731c35d add timeout for cancel jobs (#3941) 2024-06-20 21:22:44 +02:00
HugoCasa 21b9accca1 feat: replace ephemeral tokens by jwt (#3908)
* feat: replace ephemeral tokens by jwt

* fix: migration + sqlx

* fix: tests, agent, ee ref

* fix: sqlx

* fix: tests

* fix: jwt prefix change + fix tests

* fix: nit

* fix: handle agent mode
2024-06-14 13:07:35 +02:00
Ruben Fiszel 181cb7dec9 fix: further restrict job api to logged in workspace users or anonymous jobs only" (#3860) 2024-06-03 15:13:15 +02:00
Ruben Fiszel e7763375d6 jemalloc for all 2024-05-29 01:44:37 +02:00
HugoCasa 5d2b244869 fix: worker metrics (#3837)
* fix: worker metrics

* chore: sqlx

* chore: update ee ref

* fix: remove jemalloc stats unwrap
2024-05-29 01:12:00 +02:00
Ruben Fiszel 7a36f30fe3 fix: make all error strings more verbose 2024-05-25 22:15:15 +02:00
Ruben Fiszel 3680c292f8 add more infos about hanging monitor last ping 2024-05-23 22:14:31 +02:00
HugoCasa 62f318077c feat: improve permissioned audit logs (#3799)
* fix: increase token label size in db

* Revert "Revert "feat:  improve premissioned audit logs (#3793)" (#3798)"

This reverts commit 43a24d997e.

* feat: add username to email function

* fix: nit

* fix: add docstring to global func
2024-05-23 17:23:50 +02:00
Ruben Fiszel 43a24d997e Revert "feat: improve premissioned audit logs (#3793)" (#3798)
This reverts commit 21a077ecfa.
2024-05-23 11:12:51 +02:00
HugoCasa 21a077ecfa feat: improve premissioned audit logs (#3793)
* feat:  improve premissioned audit logs

* chore: update ee ref

* fix: build

* fix: sqlx
2024-05-23 08:55:48 +02:00
HugoCasa 2f370de628 feat: improve user audit logs and stats (#3786)
* fix: improve user audit logs and stats

* chore: sqlx

* fix: no features build

* fix: sqlx

* fix: no features build

* chore: update ee ref
2024-05-22 16:51:04 +02:00
Ruben Fiszel 0d78a31415 nit compile 2024-05-20 19:45:00 +02:00
Ruben Fiszel da091cbad7 only enable profiling if env variable is present 2024-05-20 18:57:26 +02:00
Ruben Fiszel f451748faa allow dynamic heap profiling using jemalloc live prof_active 2024-05-20 18:44:03 +02:00
wendrul d3942097df Add concurrency limits observability (#3586)
* Add concurrency_key table and field to payload

Add a new table custom_concurrency_key for storing concurrency keys on a
per job basis. Add the field to the job payload to populate the table on
creation of a new job.

* Rename to custom_concurrency_key

Be more explicit about the nature of the option variable by calling it
a more appropriate name.

* Delete concurrency_keys on delete_expire_items

* Propagate db errors up

* Add ref to EE changes

* update sqlx

* Add concurrency_key to tests

* Revert renaming of FlowValue field

FlowValue field concurrency_key must be named concurrency_key for
serialization purposes.

* Remove debug print statement

* Get concurrency_key from Job

Whether it is a Completed job or a queued one, add a ways to get the
associated concurrency key

* Add endpoint to get concurrency_key

* Add endpoint and button to get job concurrency_key

Add a line with a link on the FlowMetadata that goes to the
concurrency_groups page. add endpoint to get the concurrency_key of a
job

* Merge concurrency_key tables into one

migration + change all related querrys

* Add concurrency plot to the runs page

* Prepare sqlx

* Add concurrency Key filter on UI

* Prepare sqlx

* Prepare sqlx

* Fix filter and order query

The limit makes more sense if we cut the older rows, so order by
started_at

* Factor interpolation to reuse on concurrency key

Factor the arg interpolation logic into a function and finish the
processing of concurrency key before insertion

* Remove old concurrency key processing logic

* Second transaction with userdb

To send all concurrency intervals but revealing only uuids of accessible
jobs, make a second transaction with the userdb.

* Remove old second endpoint

the intervals endpoint now also gets the concurrencyt key information
for all jobs

* Show external jobs

* Put filters into a dropdown

Create a ToggleButtonMore and put elements into a dropdown

* Add toggle between two graphs

* Add filter functionality to concurrency graph

* Improve concurrency graph front

* Fix concurrency groups page

* Prepare sqlx

* Add ref to ee

* Change migration to create new table instead

Instead of renaming the custom_concurrency_key_ended atble, we create a
new table and we will delete custom_concurrency_key_ended in the future
when it is no longer linked to any jobs

* Do small UI improvements

* Fix range fusion by not filtering past jobs

Instead of filtering jobs in the backend on a startedAfter value, limit
the query to 1000 and query all possible towards the past to get a good
context for the graph in most sane situations

* Improve frontend UI
2024-05-15 20:15:14 +02:00
HugoCasa 696a5612f8 feat: worker metrics (#3697)
* feat: worker metrics

* fix: limit worker metrics to superadmin

* fix: limit worker metrics to superadmin + feat: queue metrics charts

* fix: improve graphs
2024-05-10 20:50:09 +02:00
HugoCasa 29b1e6f6a2 feat: critical error side channel (#3625)
* feat: critical error side channel

* feat: trigger workspace error handler or critical channel on schedule error handling failure

* fix: build

* feat: finish critical error side channel

* feat: channels instead of just emails + move to EE

* fix: remove superfluous func

* fix: nits + ee ref

* fix: open source build

* fix: nits

* chore: update ee ref
2024-05-02 20:21:23 +02:00
Ruben Fiszel 29422f156d fix: improve performance of for-loops with parralelism 2024-04-09 19:41:56 +02:00
HugoCasa 1d7bab075b feat: private hub (#3491)
* feat: private hub v0

* feat: add UI setting

* Update ee.rs

* Update ee.rs

* fix: remove ee symlink

* fix: add back CE ee.rs

* feat: disable s3 embedding loading when private hub

* feat: reload embeddings on hub url change

* fix: only reload embeddings db on server mode

* patch: set default hub url const

* fix: nit
2024-04-04 04:16:53 +02:00
Ruben Fiszel ef1ce83279 feat: add set_flow_user_states and get_flow_user_states api and sdk support 2024-03-26 17:31:17 +01:00
Ruben Fiszel 75e9e67d7a feat: large log disk and distributed storage compaction 2024-03-23 10:55:29 +01:00
Ruben Fiszel 030f6c553e generalize cache object store 2024-03-21 08:50:10 +01:00
Ruben Fiszel 745bd4d170 fix compile on non ee 2024-03-20 15:09:28 +01:00
Ruben Fiszel 174ead0473 feat: s3 cache config added to instance settings + parallelized tar pulling 2024-03-20 14:19:34 +01:00
Ruben Fiszel 00942671fe nits logging 2024-03-16 18:06:29 +01:00
Ruben Fiszel ae661365e4 fix: s3 cache is an instance settings (#3421)
* s3

* s3
2024-03-15 15:09:05 +01:00
Ruben Fiszel 2a85a874d7 fix: improve custom concurrency key handling 2024-03-06 15:53:01 +01:00
Ruben Fiszel 7575e12dc8 fix: workers to load custom tags for running sync scripts locally 2024-03-05 19:34:01 +01:00
Ruben Fiszel fc34594aeb feat: implement progress monitor for parallel branches last transition 2024-02-28 08:49:35 +01:00
Ruben Fiszel 4285f1e47d fix: improve handling of parallel flow branches of more than 30s 2024-02-27 16:33:13 +01:00
Ruben Fiszel c7f6e6f9d5 fix: crash on init script failure 2024-02-26 19:50:33 +01:00
Ruben Fiszel 86ca005c54 fix: do not handle zombie jobs on initial_load of monitor db 2024-02-25 20:37:33 +01:00
Ruben Fiszel 7207c0c801 increase flow zombie timeout to 30 2024-02-25 18:29:28 +01:00
Ruben Fiszel 32a45b544d feat: more resilient flows in case of crash during transitions 2024-02-25 18:25:40 +01:00
Ruben Fiszel e4893a1875 remove use of singlescript flow job kinds 2024-02-23 21:45:23 +01:00
Ruben Fiszel 0df43221ec fix: improve support for singlescriptflow 2024-02-23 21:06:55 +01:00
Ruben Fiszelandrubenfiszel 639c80220f feat: scim token and saml metadata setting in UI directly
chore(main): release 1.271.0 (#3237)

* chore(main): release 1.271.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>

fix test

revert ee changes

revert ee changes
2024-02-18 07:26:12 +01:00
Ruben Fiszel 1de8479259 add support for pip index url 2024-02-17 15:58:20 +01:00
Guillaume Bouvignies e6513acf5c chore: SSO EE (#3207)
* chore: SSO EE

* update ee repo ref

* revert EE gating

* update ref to ee repo

* update comment

* Move check_nb_users

* update ee repo ref
2024-02-15 17:31:53 +01:00
Ruben FiszelandGuillaume Bouvignies 8a3a9bda1c feat: default tag can be made workspace specific (#3194)
* feat: Worker env variables are hidden to developers in the config panel (#3175)

* improve rename component of apps

* progress

* all

* feat: default tags per workspace

---------

Co-authored-by: Guillaume Bouvignies <guillaume@windmill.dev>
2024-02-10 13:40:34 +01:00
Ruben Fiszel 2c4bd63e20 JOB_RETENTION_SECS set to 30days by default 2024-01-31 10:55:28 +01:00
Ruben Fiszel 640ebcb146 feat: OIDC support (#3017)
* oidc

* update

* feat: add support for multiselect in python

* d

* d

* progress

* all

* all

* all
2024-01-16 23:32:26 +01:00
Ruben Fiszel d785deff33 feat: add support for bun install scopes 2024-01-12 23:48:58 +01:00
Ruben Fiszel 4384617f1e fix: reduce stack size needed for workflow transitions 2024-01-08 00:47:59 +01:00
Guillaume Bouvignies 0710ce6ef2 feat: Detailed job memory footprint on job run page (#2956)
* feat: Detailed job memory footprint

* Address rubens comment

* double presion -> real

* sql query returns only metric_type
2024-01-05 09:13:05 +01:00
Guillaume BouvigniesandRuben Fiszel 26670f62e5 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
Ruben Fiszel c8046af9d0 fix: only list session and permanent token in user settings 2023-11-29 00:34:04 +01:00
Ruben Fiszel eb5067aee5 feat: add support for requiring users to pre-exist 2023-11-11 15:53:09 +01:00
Ruben Fiszel 4661dd2cea feat: exit dedicated worker upon new deployment 2023-11-10 20:41:43 +01:00
Guillaume Bouvignies aee35d6d51 fix: Invalid config for workers does not panic (#2612)
* fix: Invalid config for workers does not panic

* Remove unused import

* Fix error type

* cleanup unused imports
2023-11-10 18:31:14 +01:00