Commit Graph

861 Commits

Author SHA1 Message Date
Ruben Fiszel
3cf818e283 feat: replace polars with datafusion for data preview 2024-05-29 23:38:36 +02:00
HugoCasa
79948d09bb fix: worker memory usage (#3845) 2024-05-29 18:16:41 +02:00
HugoCasa
ce5c52198a feat: display last key renewal attempt (#3839)
* feat: display last key renewal attempt

* feat: improve UI + add renew button + dev instance

* fix: nits

* chore: update ee ref

* fix: nit

* fix: tests
2024-05-29 16:28:00 +02:00
HugoCasa
bba0091bff 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
HugoCasa
5de79aace3 feat: worker vcpus/memory limits + mem usage (#3828) 2024-05-27 18:43:02 +02:00
Ruben Fiszel
3db4e3bab1 feat: allow user resources in apps with a toggle (#3821)
* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* nits

* nits
2024-05-27 07:51:49 +02:00
Ruben Fiszel
6a332bc30f fix: make all error strings more verbose 2024-05-25 22:15:15 +02:00
Ruben Fiszel
98cb72123a fix build 2024-05-25 11:47:47 +02:00
HugoCasa
92cf325c35 fix: use hub script language as tag instead of 'hub' (#3816)
* fix: use hub script language as tag instead of 'hub'

* fix: remove hub tag
2024-05-25 10:38:03 +02:00
Ruben Fiszel
3656579856 fix build 2024-05-25 09:54:02 +02:00
HugoCasa
42c082702b feat: automatic key renewal (#3815)
* feat: automatic ee key renewal

* chore: sqlx

* chore: update ee repo ref

---------

Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2024-05-24 19:49:45 +02:00
Ruben Fiszel
4f30b1fb82 feat: store failed_retries per module state and display failed retries in flow status viewer 2024-05-23 19:16:26 +02:00
HugoCasa
50acb84aff 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
92b884cd3a nit 2024-05-22 00:44:25 +02:00
Ruben Fiszel
29bf7d3bd0 fix: add allow http toggle to object store settings 2024-05-22 00:36:04 +02:00
Ruben Fiszel
fcfbf9504d use RawValue for Flow value and hub script schema 2024-05-20 10:45:52 +02:00
Ruben Fiszel
c1810d164b fix(backend): improve memory usage by making schema RawValue instead of serde_json::Value 2024-05-20 10:11:47 +02:00
Ruben Fiszel
c43d04b95d feat: reduce memory usage (#3768)
* all

* all

* optimize deserialize

* all

* all

* fix issue

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile

* fix compile
2024-05-19 21:58:38 +02:00
wendrul
60b036c1ae 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
f7f7a6d85f feat: add php (#3725)
* feat: add php

* fix: nsjail + frontend build
2024-05-15 08:12:11 +02:00
Ruben Fiszel
6b49f47c5c feat: nativets can use the wmill library + setClient not required anymore (#3714)
* all

* all

* all

* all
2024-05-13 08:26:03 +02:00
Ruben Fiszel
aae70ac6cb feat: logs can be downloaded directly from server/frontend if using shared volume 2024-05-12 04:16:04 +02:00
Ruben Fiszel
14c1555089 fix: improve status exit dedicated workers 2024-05-11 02:44:49 +02:00
Ruben Fiszel
36e61b4565 fix: improve nodejs mode after esm update 2024-05-11 02:15:28 +02:00
Ruben Fiszel
cdf7a285a4 fix(cli): support whileloop in flow cli sync 2024-05-11 02:06:14 +02:00
Ruben Fiszel
fb369fb4a8 fix: selectedRow for a table is set on table actions 2024-05-11 00:47:52 +02:00
Ruben Fiszel
0ab51e8929 app nits 2024-05-10 23:56:55 +02:00
HugoCasa
cb4b2f60ff 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
Ruben Fiszel
055c15e855 fix: fix build 2024-05-10 01:24:46 +02:00
Ruben Fiszel
f203ce6da0 fix compile 2024-05-09 23:42:17 +02:00
Ruben Fiszel
fd5dfde201 fix(cli): add excludes to the codebase conf 2024-05-09 18:52:38 +02:00
Ruben Fiszel
1f64715043 feat: local typescript codebase as bundle (#3694)
* codebases

* codebases

* foo

* foo

* foo

* foo

* fix(frontend): Disable the insert button when required fields are empty strings (#3659)

* fix(frontend): use normal password mask for the sensitive fields of the resource editor

* handle super admins in password arg input

* chore(main): release 1.323.2 (#3660)

* chore(main): release 1.323.2

* Apply automatic changes

---------

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

* foo

* all

* s3_helpers move

* progress

* all

* progress

* progress

* progress

* progress

* codebase final

* update without ee

* sqlx

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* all

* update

* all

* all

* all

---------

Co-authored-by: Faton Ramadani <faton.ramadani14@gmail.com>
Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-05-09 18:35:50 +02:00
HugoCasa
4c3cb5f9e7 fix: can cancel only if can disable schedule + stop worker on force cancel + soft cancel job parent on job cancel (#3670)
* fix: can cancel only if can disable schedule + stop worker on force cancel + cancel job parents

* fix: sqlx build

* fix: flow reschedule check + soft cancel only direct parent

* fix: sqlx prepare

* fix: only soft cancel parent if force cancel and job is a flow step
2024-05-07 17:17:43 +02:00
Ruben Fiszel
c88cf18ccd increase max worker connections to 5 2024-05-03 08:39:51 +02:00
HugoCasa
cb132671d3 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
ccebe282d5 box flowmodulestatus to reduce stack allocation of flowvalue 2024-05-02 10:28:04 +02:00
Ruben Fiszel
59ecd1de29 box flowmodule to reduce stack allocation of flowvalue 2024-05-02 10:06:16 +02:00
Ruben Fiszel
f1cd473253 fix: re-release nit 2024-05-02 01:10:41 +02:00
Ruben Fiszel
961c89f3ec fix: improve schedule editor UX 2024-05-02 00:42:50 +02:00
Ruben Fiszel
4032737cd4 fix: add WM_WORKER_GROUP to get worker group from script 2024-05-01 21:22:53 +02:00
Ruben Fiszel
fdf237c4ed feat: add distributed global cache for go 2024-04-26 11:31:21 +02:00
Ruben Fiszel
e27d2c0d35 feat: add distributed global cache for go 2024-04-26 11:31:21 +02:00
Ruben Fiszel
c5de8365ec feat: support multiple labels for jobs (wm_label -> wm_labels) 2024-04-24 11:32:25 +02:00
Ruben Fiszel
ba4efb7b7e feat: add label and schedule filters to runs page 2024-04-23 22:48:21 +02:00
HugoCasa
9e36ae066c feat: hide scripts with on function main from operators + badge/filter for devs (#3584)
* feat: save in DB whether script has not main function

* fix: if cannot parse script args, clear schema

* feat: no main function badge and filter

* fix: sqlx

* fix: no main
2024-04-22 15:59:13 +02:00
wendrul
c3325c2cbf Instrument logs (#3566)
* Add spans to show worker_name and job_id

Always show worker_name and job_id when relevant, by creating spans that
live as long as the worker and the job.

* Remove redundant worker names from fn run_worker

Remove the now redundant worker_name tracing, as the information now
lives at the span level

* Use span when spawning new thread

* Instrument more pertinent functions

Move spans to more pertinent functions. Remove more redundant info, and
change worker_name to just worker

* Change tracing subscriber to log path:line_no

Change from logging target (module name usually) to file path and line
number
2024-04-18 01:11:14 +02:00
Ruben Fiszel
e571d3c4d0 fix ee links 2024-04-17 22:38:03 +02:00
Ruben Fiszel
cb6efb08a2 feat: show more for logs on s3 directly possible from browser log viewer 2024-04-17 21:42:46 +02:00
Ruben Fiszel
a1d2c59fce feat: flow concurrency limits support custom concurrency key 2024-04-09 22:03:39 +02:00
HugoCasa
b168256a90 feat: git sync group changes by folder (#3517)
* feat: git sync group changes by folder

* chore: update ee ref
2024-04-05 23:07:27 +02:00