Commit Graph
892 Commits
Author SHA1 Message Date
pyranotaandRuben Fiszel d6d4756b7a feat: Allow setProgress and getProgress from within the script (#4400)
* Allow setting progress explicitly from script body.

This feature exposes:
 * `getProgress`
 * `setProgress`
 * `incProgress`

API in TypeScript client (python is coming soon).

NOTE: Progress cannot be out of range 0..100 and cannot decrease.

With exposed APIs there is also UI changes, so progress can be shown for individual jobs as well.

For optimization reasons, jobs start to ask for progress only after N-seconds of execution.

* feat: Add `shell.nix`

If you dont have anything but nix, dont worry, run nix-shell in root, or activate with direnv and get all needed dependencies

NOTE: You will still need docker

* feat: Add `dev.nu` to typescript client

Little helper function, allowing developer to work on ts client easier.

To use:
  `./dev.nu watch`

Now add import of windmill in body of your script and `//nobundle` on top of the file

Edit ts client in your favourite editor and hit save. Script will do the rest.

* Cleanup files

* Fix: Failed to deserialize query string: missing field `get_progress`

* perf: Implement non-naive polling mechanism for getting job progress

* Add independant delay for getProgress

Problem in `TestJobLoader`:

There should be 2 delays:

    One until we find our first progress (every 5s)
    Once we found our first progress, we can do it every second

* nit: Use `query_scalar!` instead of `query_as`

* Fix: Sql error, no rows returned by a query that expected to return at least one row

* refactor: Remove global CSS for JobProgressBar

* Change UI for progress of flow subjobs

* Replace `Step 1` with `Running` in ProgressBar for individual jobs

* Remove `incProgress`

incProgress is not very usefull and error-prone

* perf: Set metric only for jobs that are actually using it

(https://github.com/windmill-labs/windmill/pull/4373#discussion_r1759843773)

* Offload registering progress from clients to server

* Add `jobId?` argument to typescript-client's `setProgress` and `getProgress`

Allows to set progress of other jobs and flows,
if jobId specified, than flow id will be inferred automatically.

Could be used by SDK.

* Add `Error::MetricNotFound` for better error handling

* Fix: Make `JobProgressBar` display in red when failed

* Add persistant progress bar

Now you can reload the page after job is done and progress will be still there

* Allow succeeded individual job's progress bar stick to 100%

* Add python support 

* nit: Remove usage of undefined variable in python-client

* Add `async` in ts client (for error handling)

* nit(frontend): Remove unused import

* Dont load JobProgressBar when it is not needed

* nit: npm check fix

* cargo sqlx prepare

* fix sqlx

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-09-18 01:16:19 +02:00
Ruben Fiszelandrubenfiszel c661ac8696 chore(main): release 1.395.0 (#4394)
* chore(main): release 1.395.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-17 10:41:26 +02:00
Ruben Fiszelandrubenfiszel 692c1dcb93 chore(main): release 1.394.6 (#4393)
* chore(main): release 1.394.6

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-15 21:07:50 +02:00
Ruben Fiszelandrubenfiszel 2e80107e03 chore(main): release 1.394.5 (#4385)
* chore(main): release 1.394.5

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-13 23:39:12 +02:00
Ruben Fiszelandrubenfiszel e81c8384e4 chore(main): release 1.394.4 (#4375)
* chore(main): release 1.394.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-13 08:52:34 +02:00
Ruben Fiszelandrubenfiszel 562b2fc671 chore(main): release 1.394.3 (#4374)
* chore(main): release 1.394.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-11 23:56:17 +02:00
Ruben Fiszel 51e6f36e13 fix: improve runFlowAsync and run_flow_async default behavior + time formatting of scheduled for 2024-09-11 23:52:02 +02:00
Ruben Fiszelandrubenfiszel 509f4a0e58 chore(main): release 1.394.2 (#4372)
* chore(main): release 1.394.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-11 23:05:33 +02:00
Ruben Fiszelandrubenfiszel 3e0862f349 chore(main): release 1.394.1 (#4366)
* chore(main): release 1.394.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-11 12:19:19 +02:00
Ruben Fiszelandrubenfiszel 272d194bf5 chore(main): release 1.394.0 (#4358)
* chore(main): release 1.394.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-10 20:57:11 +02:00
Ruben Fiszelandrubenfiszel 5e822c85d4 chore(main): release 1.393.4 (#4356)
* chore(main): release 1.393.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-09 14:06:26 +02:00
Ruben Fiszelandrubenfiszel ae1710baa8 chore(main): release 1.393.3 (#4353)
* chore(main): release 1.393.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-07 21:31:27 +02:00
Ruben Fiszelandrubenfiszel ac7c9237ec chore(main): release 1.393.2 (#4351)
* chore(main): release 1.393.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-07 14:00:03 +02:00
Ruben Fiszelandrubenfiszel 097bff5366 chore(main): release 1.393.1 (#4350)
* chore(main): release 1.393.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-07 11:56:37 +02:00
Ruben Fiszelandrubenfiszel fbbf5db3a1 chore(main): release 1.393.0 (#4348)
* chore(main): release 1.393.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-07 11:15:31 +02:00
Ruben Fiszelandrubenfiszel 842b988b0d chore(main): release 1.392.0 (#4341)
* chore(main): release 1.392.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-07 01:20:26 +02:00
Ruben Fiszelandrubenfiszel df043a19b9 chore(main): release 1.391.0 (#4335)
* chore(main): release 1.391.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-04 14:01:20 +02:00
Ruben Fiszelandrubenfiszel f8cb8aa575 chore(main): release 1.390.1 (#4332)
* chore(main): release 1.390.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-03 20:31:12 +02:00
Ruben Fiszelandrubenfiszel 58dbc1a4d1 chore(main): release 1.390.0 (#4318)
* chore(main): release 1.390.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-03 01:06:08 +02:00
Ruben Fiszelandrubenfiszel a5dde31304 chore(main): release 1.389.1 (#4316)
* chore(main): release 1.389.1

* Apply automatic changes

* Update CHANGELOG.md

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-02 14:06:41 +02:00
Ruben Fiszelandrubenfiszel b3b24ae83a chore(main): release 1.389.0 (#4310)
* chore(main): release 1.389.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-09-01 23:34:31 +02:00
Ruben Fiszelandrubenfiszel d7e7c6e2d4 chore(main): release 1.388.0 (#4308)
* chore(main): release 1.388.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-30 17:47:06 +02:00
Ruben Fiszelandrubenfiszel 34128846e0 chore(main): release 1.387.1 (#4306)
* chore(main): release 1.387.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-30 14:35:46 +02:00
Ruben Fiszelandrubenfiszel 3ca89f552d chore(main): release 1.387.0 (#4300)
* chore(main): release 1.387.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-29 20:06:17 +02:00
Ruben Fiszelandrubenfiszel 1115f6dbd4 chore(main): release 1.386.0 (#4291)
* chore(main): release 1.386.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-28 13:45:42 +02:00
Ruben Fiszel 1ec45e5ad6 feat: add vim support for monaco/webeditor 2024-08-26 22:31:23 +02:00
Ruben Fiszelandrubenfiszel 125ecd64ac chore(main): release 1.385.0 (#4288)
* chore(main): release 1.385.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-26 18:59:38 +02:00
Ruben Fiszelandrubenfiszel a1ac615cfb chore(main): release 1.384.0 (#4278)
* chore(main): release 1.384.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-26 11:36:07 +02:00
Ruben Fiszelandrubenfiszel cc738f32e7 chore(main): release 1.383.1 (#4277)
* chore(main): release 1.383.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-22 14:05:00 +02:00
Ruben Fiszelandrubenfiszel 7d13854e38 chore(main): release 1.383.0 (#4271)
* chore(main): release 1.383.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-22 09:05:03 +02:00
Ruben Fiszel fc12aeb396 fix(python-client): only require httpx to be >= 0.24 instead of ^0.24 2024-08-22 09:01:17 +02:00
Ruben Fiszelandrubenfiszel 3f0eaa6c63 chore(main): release 1.382.2 (#4267)
* chore(main): release 1.382.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-20 18:54:40 +02:00
Ruben Fiszelandrubenfiszel 8612013026 chore(main): release 1.382.1 (#4263)
* chore(main): release 1.382.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-20 14:48:18 +02:00
Ruben Fiszelandrubenfiszel b6c72dc27c chore(main): release 1.382.0 (#4256)
* chore(main): release 1.382.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-20 12:47:12 +02:00
Ruben Fiszelandrubenfiszel de4f5e3015 chore(main): release 1.381.0 (#4248)
* chore(main): release 1.381.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-16 17:34:20 +02:00
Ruben Fiszelandrubenfiszel 5416254aa1 chore(main): release 1.380.0 (#4242)
* chore(main): release 1.380.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-14 19:48:20 +02:00
Ruben Fiszelandrubenfiszel 58adf6ad2d chore(main): release 1.379.4 (#4238)
* chore(main): release 1.379.4

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-14 14:48:36 +02:00
Ruben Fiszelandrubenfiszel 9363e6d05f chore(main): release 1.379.3 (#4235)
* chore(main): release 1.379.3

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-14 01:00:31 +02:00
Ruben Fiszelandrubenfiszel 969699ce47 chore(main): release 1.379.2 (#4234)
* chore(main): release 1.379.2

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-13 23:59:18 +02:00
Ruben Fiszelandrubenfiszel 41bf933fb7 chore(main): release 1.379.1 (#4231)
* chore(main): release 1.379.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-13 18:04:08 +02:00
Ruben Fiszelandrubenfiszel 0d5c2e5dd7 chore(main): release 1.379.0 (#4228)
* chore(main): release 1.379.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-13 16:01:49 +02:00
Ruben Fiszelandrubenfiszel 36129fb470 chore(main): release 1.378.0 (#4219)
* chore(main): release 1.378.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-12 11:23:57 +02:00
Ruben Fiszelandrubenfiszel 832df264b4 chore(main): release 1.377.1 (#4216)
* chore(main): release 1.377.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-08 18:59:53 +02:00
Ruben Fiszelandrubenfiszel b60f42e387 chore(main): release 1.376.1 (#4202)
* chore(main): release 1.376.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-07 12:04:44 +02:00
Ruben Fiszelandrubenfiszel a84c54d663 chore(main): release 1.376.0 (#4195)
* chore(main): release 1.376.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-06 22:03:21 +02:00
Ruben Fiszelandrubenfiszel 1c83876775 chore(main): release 1.375.0 (#4181)
* chore(main): release 1.375.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-05 13:34:54 +02:00
Ruben Fiszelandrubenfiszel 989c9e6102 chore(main): release 1.374.0 (#4175)
* chore(main): release 1.374.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-04 23:20:09 +02:00
Ruben Fiszelandrubenfiszel a168107d29 chore(main): release 1.373.1 (#4171)
* chore(main): release 1.373.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-02 17:36:44 +02:00
Ruben Fiszelandrubenfiszel 1723e989cd chore(main): release 1.373.0 (#4168)
* chore(main): release 1.373.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-01 22:49:05 +02:00
Ruben Fiszelandrubenfiszel e6d5689bf9 chore(main): release 1.372.0 (#4165)
* chore(main): release 1.372.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2024-08-01 16:28:17 +02:00