Commit Graph

50 Commits

Author SHA1 Message Date
Ruben Fiszel
9ea18b4593 feat(backend): add job_id as a query arg to force set the new job_id 2023-05-15 10:50:43 +02:00
Ruben Fiszel
e60a4b251e feat(backend): cache hub scripts in the worker cache 2023-05-09 12:45:54 +02:00
Ruben Fiszel
796b346bfb add cairo to openbb build 2023-05-09 11:11:09 +02:00
Ruben Fiszel
2d62ced3a5 fix script in schedule should use latest hash 2023-04-27 18:03:12 +02:00
Ruben Fiszel
4f7d7bb939 default worker handle other tags 2023-04-24 12:17:38 +02:00
Ruben Fiszel
02ba82064f feat(backend): worker groups (#1452)
* tagged scripts

* tagged scripts

* fix

* fix

* fix

* all

* update sqlx
2023-04-23 16:57:23 +02:00
Ruben Fiszel
1ba0e24155 feat(backend): only run fully deployed scripts 2023-04-21 12:49:47 +02:00
Ruben Fiszel
be41e45130 split worker.rs into more files 2023-04-13 17:44:47 +02:00
Kai Jellinghaus
63102b036c feat(backend): Redis based queue (#1324)
* Merge?

* Fix V8 breaking change

* WIP

* WIP

* Cleanup

* Move to git reference

* Fix Merge conflict

* update

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-04-11 12:24:13 +02:00
Ruben Fiszel
66d2ae813a fix tests + scheduled_for uses now instead of system time 2023-04-11 11:48:14 +02:00
Ruben Fiszel
bbb6a15da7 only register prometheus metrics if they are enabled 2023-04-09 15:39:25 +02:00
Oliver Veal
0b444ce395 feat: improved cron/schedule editor (#1362)
* basic cron schedule editing ui

* schedules run in a user-specified timezone

* fix other uses of CronInput component

* use now() from database to schedule next job

* offset -> IANA timezone conversion on db migration

* sqlx ci

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2023-04-05 16:37:24 +02:00
Ruben Fiszel
77079b4b68 consistent sort + minor nits 2023-03-30 17:27:21 +02:00
Ruben Fiszel
2b413dd6ab feat: add force cancel 2023-03-30 00:42:13 +02:00
Ruben Fiszel
4fe2477940 handle space and uppercase in script_path 2023-03-29 16:16:14 +02:00
Ruben Fiszel
904d74187e feat(backend): allow relative imports for python 2023-03-28 20:27:40 +02:00
Ruben Fiszel
0263c20a5b introduce root_job and leaf_jobs for efficient result_by_id 2023-03-03 12:44:44 +01:00
Ruben Fiszel
10f4bf16c2 feat(backend): get_result_by_id do a downward pass to find node at any depth (#1249)
* downwardRec

* downwardRec

* any node

* any node

* any node
2023-03-01 11:33:48 +01:00
Ruben Fiszel
72836b7b96 feat(backend): use counter for sleep/execution/pull durations 2023-02-27 12:00:32 +01:00
Ruben Fiszel
d1be3192ea remove references to starter workspace' 2023-02-22 13:56:24 +01:00
Ruben Fiszel
69d4a23b4f send a webhook on new user + lazy static refactor (#1203)
* supercharge

* supercharge

* progress

* progress

* display config

* display config

* display config

* display config

* fix extensions

* fix build

* disable nsjail = false for test
2023-02-15 10:59:50 +01:00
Kai Jellinghaus
64f0fe9232 Setup Experience (#1194)
* Squash

* Update SQLX
2023-02-13 02:32:29 +01:00
Ruben Fiszel
0ecfec2577 feat: add mem peak info 2023-02-04 20:26:15 +01:00
Ruben Fiszel
4c4a90907b increase max concurrent runs 2023-02-03 22:39:36 +01:00
Ruben Fiszel
8d31165333 feat: add WHITELIST_WORKSPACES and BLACKLIST_WORKSPACES 2023-02-02 07:57:03 +01:00
Ruben Fiszel
e320a8cead restrict number of jobs in the queue for free users 2023-01-25 13:34:08 +01:00
Ruben Fiszel
ae23830f2a implement MAX_FREE_CONCURRENT_RUNS 2023-01-25 12:58:29 +01:00
Ruben Fiszel
86aeb8fb5f fix: improvements for error handling as first step of flow 2023-01-24 11:16:44 +01:00
Ruben Fiszel
49aeed88fa fix permissioned_as from username 2023-01-17 12:49:24 +01:00
Ruben Fiszel
bb4ca8c99f playwright against uffizzi (#1109)
* all

* fix perms

* move build to depot

* login

* revert to docker build

* revert to docker build

* fix playwright
2023-01-16 18:01:45 +01:00
Ruben Fiszel
e19fcce575 fix schedule permissions 2023-01-16 16:42:42 +01:00
Ruben Fiszel
41ff90d41d fix tests wrt to new error handling 2023-01-14 18:47:37 +01:00
Ruben Fiszel
ec2e0fdc33 error handling improvements 2023-01-14 17:46:03 +01:00
Ruben Fiszel
13175ffc31 various improvements 2023-01-10 11:21:16 +01:00
Ruben Fiszel
cd435fa07c resuming suspended flows as owner is now through flow id 2022-12-24 09:44:05 +01:00
Ruben Fiszel
079fbd55ee feat(backend): resume from owner directly in flow status viewer (#1042)
* foo

* progress
2022-12-23 13:04:31 +01:00
Ruben Fiszel
6e2890f0f1 require ownership to move items && automatically edit schedule paths 2022-12-18 18:45:32 +01:00
Ruben Fiszel
59a3ba0a25 add visible_to_owner 2022-12-15 16:01:17 +01:00
Ruben Fiszel
567a404355 usage tracker v3 2022-12-12 01:11:44 +01:00
Ruben Fiszel
f7c5759054 usage tracker v2 2022-12-11 22:48:09 +01:00
Ruben Fiszel
039e1fa1e6 feat: implement usage tracker + quotas 2022-12-11 18:47:39 +01:00
Kai Jellinghaus
b87fc7796a feat(backend): Input transform errors (#1006)
* Add pre run error & propagate input transforms there

* Handle pre-run errors

* Update SQLX data

* Update SQLX data
2022-12-08 23:56:49 +01:00
Ruben Fiszel
018f8896bc feat: add include_header to pass request headers to script 2022-12-05 23:36:31 +01:00
Ruben Fiszel
f1b04b7374 improve flow status viewer 2022-12-05 11:19:26 +01:00
Kai Jellinghaus
937e16c2af feat(backend): Flow lock (#868)
* Add lockfile information

* Allow Lockfiles to be pushed to queue

* Handle raw_lock on worker

* Flow Lock Job

* Allow RawScript path

* Simplify handle_code_execution_job

* Regenerate SQLX

* Fix tests

* fix test

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2022-11-13 18:31:08 +01:00
Ruben Fiszel
4aeed1ffc8 fix edit schedule 2022-11-10 16:49:16 +01:00
Ruben Fiszel
cd8d0e5ea6 feat: deprecate previous_result in favor of results per id 2022-11-10 01:58:52 +01:00
Ruben Fiszel
afd8ce8797 handle errors prior to first step better 2022-10-30 19:03:22 +01:00
Ruben Fiszel
b02521d7ff fix(backend): fix error handler progress update 2022-10-30 13:47:28 +01:00
Kai Jellinghaus
6263e90735 restructure the entire backend layout using workspaces (#815) 2022-10-29 11:58:06 +02:00