Commit Graph
5878 Commits
Author SHA1 Message Date
Ruben Fiszel cd9bd29931 fix(backend): handle better some flow edge-cases 2022-08-04 01:48:53 +02:00
Ruben Fiszel 089f4a7811 fix(backend): handle better some flow edge-cases 2022-08-04 01:13:12 +02:00
sqwishy 6c71fac136 fix(backend): prometheus histogram for worker job timer (#312)
* prometheus histogram for worker job timer

hosts on :8001

* some new metrics in worker + field

adds start_time_seconds, job_duration_seconds & jobs_failed

* use tokio task_local to count job failures

* METRICS_ADDR environment variable off by default

true defaults to 0.0.0.0:8001 otherwise expects a socket address

* pass metrics as args instead of task local
2022-08-02 22:56:25 +02:00
Ruben Fiszelandrubenfiszel a5d697b69a chore(main): release 1.27.2 (#322)
* chore(main): release 1.27.2

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-08-02 18:40:33 +02:00
Ruben Fiszelandrubenfiszel 117851b9d1 chore(main): release 1.27.1 (#321)
* chore(main): release 1.27.1

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-08-02 17:31:42 +02:00
Ruben Fiszel 5e14b6dfb3 feat: add primitive sql format (#320) 2022-08-02 16:55:20 +02:00
Ruben Fiszel 0f68b2f172 chore: update backend 2022-08-02 00:49:21 +02:00
Mike 51d05c8f5d fix: typos (#301) 2022-08-01 17:17:19 +02:00
Ruben Fiszel b51bb678be reimport openflow as schemas 2022-08-01 17:07:43 +02:00
Ruben Fiszel 38600f71e9 reimport openflow as schemas 2022-08-01 16:59:12 +02:00
Ruben Fiszelandrubenfiszel 8529695344 chore(main): release 1.26.3 (#294)
* chore(main): release 1.26.3

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-08-01 16:53:18 +02:00
Ruben Fiszel 72002be154 update flowapi to be easier on deno generator 2022-08-01 16:38:51 +02:00
Ruben Fiszel 31904be890 update current job to in progress 2022-07-31 22:47:07 +02:00
Ruben Fiszel d397e6d618 update current job to in progress 2022-07-31 22:41:41 +02:00
Ruben Fiszel c37b9f7106 do not serialize the whole object for job in progress update 2022-07-31 22:31:44 +02:00
Ruben Fiszel a368d2c6d4 order result from forloop bby args _index 2022-07-31 20:41:35 +02:00
Ruben Fiszel 03ed38e9b2 only check for schedule if not a flow step 2022-07-31 20:30:30 +02:00
Ruben Fiszel 7f55e7a498 report flow for whom the fetching error is happening 2022-07-31 20:23:03 +02:00
Ruben Fiszel 4df819554e report flow for whom the fetching error is happening 2022-07-31 19:53:19 +02:00
Ruben Fiszel abcd25dbff error for flow of length 0 2022-07-31 19:15:05 +02:00
Ruben Fiszel 2483072d81 improve error messages 2022-07-31 19:01:46 +02:00
Ruben Fiszelandrubenfiszel c46ef5d79a chore(main): release 1.26.2 (#293)
* chore(main): release 1.26.2

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-31 16:42:00 +02:00
Ruben Fiszelandrubenfiszel cd4563d34b chore(main): release 1.26.1 (#292)
* chore(main): release 1.26.1

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-31 16:20:41 +02:00
Ruben Fiszel 2a0d70dcbc change openflow encoding for more proper oneOf + fix all from svelte:check 2022-07-31 01:20:52 +02:00
Ruben Fiszel c4ea52b4c3 Put openflow.openapi.yaml at root for visibility #290 2022-07-30 20:10:45 +02:00
Ruben Fiszel bb81d5e019 split openapi & openflow 2022-07-30 17:30:34 +02:00
Ruben Fiszel e82e5fff56 transferring copyright from ruben to windmill labs 2022-07-30 14:09:41 +02:00
Ruben Fiszel ae2aa7b8f8 more errors 2022-07-30 01:10:01 +02:00
Ruben Fiszelandrubenfiszel 93e599b371 chore(main): release 1.26.0 (#264)
* chore(main): release 1.26.0

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-30 00:08:16 +02:00
sqwishy 9a632befdd job duration to ms & added to /api/w/*/users/list (#261)
* add jobs_duration to /api/w/*/users/list

A few improvements on this might be considered.

- Adding the duration to /whoami and /whois
- Optionally fetching duration conditional on a query parameter.
- Using the query parameter value to select how far back to look,
  `created_at > now() - $2 * '1 day'::interval`.

Subquery might not be optimal, but performance is a bit weird to test
right now as I haven't done much with my development database to get it
to resemble a typical (production) database.  And there aren't many
indexes currently either.

And I think my rust rustfmt doesn't run because unstable options in the
rustfmt.toml or something so the formatting might be a bit wonky.

* duration -> duration_ms for completed_job

sqlx reordered keys in sqlx-data.json so the diff is quite noisy. I'm
not sure if I did it wrong or if this tool is obnoxious that way.

* don't double count job duration in flows

* job_duration_ms to Usage duration_ms jobs flows

rustfmt got carried away sorry
2022-07-30 00:02:51 +02:00
sqwishy b1cd915847 treat sqlx-data.json as binary in git diff (#265) 2022-07-30 00:02:34 +02:00
Ruben Fiszel 8037e390db cargo fmt II 2022-07-29 21:35:50 +02:00
Ruben Fiszel d4b5a0ea3d cargo fmt 2022-07-29 21:29:59 +02:00
Ruben Fiszel fed1849256 protect against ill-defined state for flows restart 2022-07-29 21:14:56 +02:00
Ruben Fiszel b3e821e1b2 also handle the case where it's the input transform of the first flow job that fails 2022-07-29 20:48:39 +02:00
Ruben Fiszel 3e07ae2b55 fix: forloop flows unsoundness fix part I 2022-07-29 20:36:57 +02:00
Ruben Fiszelandrubenfiszel e8a3b538e7 chore(main): release 1.25.0 (#263)
* chore(main): release 1.25.0

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-29 11:44:03 +02:00
Ruben Fiszel 771de0990a fix: update variable and resources now return error if nothing was updated 2022-07-29 11:07:59 +02:00
Ruben Fiszelandrubenfiszel 9eee28be40 chore(main): release 1.24.2 (#260)
* chore(main): release 1.24.2

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-29 00:55:47 +02:00
Ruben Fiszel a8d4b7d535 typescript parser now support ? syntax for args 2022-07-28 21:40:47 +02:00
Ruben Fiszel c3259ec262 fix: if :path is not a valid path, do not even attempt to fetch it 2022-07-28 12:59:14 +02:00
Ruben Fiszel 127bba6c9b bring back username, workspace_id in audit log 2022-07-28 09:50:00 +02:00
Ruben Fiszel 98c57e974b improve logging 2022-07-28 02:31:52 +02:00
Ruben Fiszel c5873ddc34 nit: make handle flow log a debug 2022-07-28 00:57:47 +02:00
Ruben Fiszel 4243a46d52 fix: get_variable refresh_token bug 2022-07-27 16:24:10 +02:00
Ruben Fiszelandrubenfiszel e47aa21782 chore(main): release 1.24.1 (#259)
* chore(main): release 1.24.1

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-27 15:50:18 +02:00
Ruben Fiszel e91b7e5aba fix: skip_failures is boolean not bool 2022-07-27 15:49:02 +02:00
Ruben Fiszel e92f5c0b63 fix: encrypt the refresh token 2022-07-27 15:39:39 +02:00
Ruben Fiszel 5636ecd276 fix: keep previous refresh token if no new ones were provided 2022-07-27 15:21:10 +02:00
Ruben Fiszelandrubenfiszel 8f2d9bce65 chore(main): release 1.24.0 (#238)
* chore(main): release 1.24.0

* Apply automatic changes

Co-authored-by: rubenfiszel <rubenfiszel@users.noreply.github.com>
2022-07-27 12:41:35 +02:00