Files
windmill/frontend/src/lib/components
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
..
2024-04-22 12:19:23 +02:00
2024-05-15 08:12:11 +02:00
2024-04-24 11:44:29 +02:00
2023-08-20 10:17:06 +02:00
2024-04-22 12:19:23 +02:00
2024-05-10 23:56:55 +02:00
2024-04-22 12:19:23 +02:00
2024-04-30 00:12:04 +02:00
2024-04-17 23:03:20 +02:00
2024-04-30 22:01:19 +02:00
2024-02-02 23:17:33 +01:00
2024-04-11 10:14:36 +02:00
2024-05-10 23:56:55 +02:00
2024-05-15 08:12:11 +02:00
2024-05-15 08:12:11 +02:00
2023-11-12 21:26:44 +01:00
2024-05-15 08:12:11 +02:00
2024-05-03 09:44:16 +02:00
2024-05-11 18:27:11 +02:00
2024-05-14 23:22:11 +02:00
2024-03-27 14:53:47 +01:00
2024-05-11 00:54:38 +02:00
2024-05-11 00:54:38 +02:00
2024-01-31 23:10:34 +01:00
2024-02-21 14:50:23 +01:00
2024-04-17 23:03:20 +02:00
2024-03-22 18:51:32 +01:00
2024-04-17 22:58:23 +02:00
2024-03-12 21:52:22 +01:00
2024-04-22 12:19:23 +02:00
2024-04-22 12:19:23 +02:00
2024-05-15 08:12:11 +02:00