Commit Graph

59 Commits

Author SHA1 Message Date
thomas chaton 979d728563
Add Database Component (#14995) 2022-10-19 19:52:12 +00:00
thomas chaton d675d06957
Protect Flow from exception during request processing (#15187) 2022-10-19 18:29:40 +00:00
Ethan Harris 4acb10f981
Add support for command descriptions (#15193) 2022-10-19 17:34:35 +01:00
thomas chaton d11c0d6cc3
Resolve s3 drive issue where the root folder doesn't need to exist locally (#15127) 2022-10-18 14:16:18 +01:00
Pritam Soni 80080550d9
feat: allow root path to run the app on `/path` (#14972)
* feat: add base path
* uvicorn fix arg
* Add prefix
* update with base_path fix
* replace base path with root path
* Apply suggestions from code review

Co-authored-by: Kaushik B <45285388+kaushikb11@users.noreply.github.com>
Co-authored-by: Kaushik B <kaushikbokka@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-07 14:09:40 +00:00
Sherin Thomas 129f4fa873
[App/Feature] HTTP Queues (#14978)
[App/Feature] HTTP Queues (#14978)
2022-10-06 16:01:49 +05:30
Ethan Harris 0a9fc22b4f
Fix bug in upload file endpoint (#14924)
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: otaj <6065855+otaj@users.noreply.github.com>
2022-10-05 10:05:41 +00:00
thomas chaton b936fd4380
[app] Add CloudCompute ID serializable within the flow and works state (#14819) 2022-10-04 19:46:44 +00:00
Sherin Thomas 53694eb93d
[App/Improvement] Cleaning up Queue abstraction (#14977)
[App/Improvement] Cleaning up Queue abstraction (#14977)
2022-10-04 22:07:31 +05:30
Raphael Randschau 6edf5c5cc2
fix connect/ disconnect without arguments (#14877) 2022-09-27 03:43:36 +00:00
Christopher Nguyen 0841f23bdf
Fix icon encoding in PL App pretty-print (#14795)
Co-authored-by: awaelchli <aedu.waelchli@gmail.com>
2022-09-20 16:39:11 -04:00
Adrian Wälchli e872b274ca
User-friendly exception when `LightningWork.run()` method is missing (#14759) 2022-09-17 19:45:07 +00:00
Pranjal Datta 8f14184180
Fix property setter override by default setter (#14259) 2022-09-17 07:06:45 +00:00
Adrian Wälchli 51ab51a731
User-friendly exception if root flow does not override the `run()` method (#14760) 2022-09-17 07:25:54 +01:00
Alec Merdler 71719b9960
Support Injecting Secrets into Apps Running in the Cloud (#14612)
Adds a new '--secret' flag to 'lightning run app':

lightning run app --cloud --secret MY_SECRET=my-secret-name app.py

When the Lightning App runs in the cloud, the 'MY_SECRET'
environment variable will be populated with the value of the
referenced Secret. The value of the Secret is encrypted in the
database, and will only be decrypted and accessible to the
Flow/Work processes in the cloud.

Co-authored-by: Sherin Thomas <sherin@grid.ai>
Co-authored-by: Noha Alon <nohalon@gmail.com>
Co-authored-by: thomas chaton <thomas@grid.ai>
2022-09-15 09:15:59 -04:00
Sherin Thomas 7dbd038a94
Bump lightning cloud for memory leak fix (#14697)
Bump lightning cloud for memory leak fix (#14697)
2022-09-15 17:59:12 +05:30
Neven Miculinic 75e6c9109c
[CLI] Fix cluster logs with over 5000 entries (#14458) 2022-09-15 11:05:46 +00:00
Sherin Thomas d579733b08
Lightning cloud client call with key word arguments (#14685) 2022-09-14 08:44:59 +02:00
thomas chaton c81a71c908
Lightning App Fixes from Training Studio App dev (#14532)
* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update
2022-09-13 11:43:15 -04:00
Pritam Soni 16b4644e06
feat: LAI2-10296 check if user has sufficient credits to run an app from the cli (#14285) 2022-09-13 19:19:09 +05:30
Dmitry Frolov 6e21f46fe8
[CLI] Move storage from app prefix to project/app prefix (#14583)
* Move storage from app prefix to project/app prefix: checking and legacy support

* Changelog message

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-09-12 20:11:00 -04:00
thomas chaton 80e2f097e0
(app): Add load_state_dict and state_dict (#14100)
Co-authored-by: manskx <ahmed.mansy156@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2022-09-12 18:29:23 +00:00
thomas chaton b679fc2922
(app) Resolve a bug where the state changes isn't detected properly (#14465)
Co-authored-by: Mansy <ahmed.mansy156@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-09-12 16:54:14 +00:00
thomas chaton 86fd5b22d4
(app) Make Logging DEBUG mode lazy (#14464) 2022-09-12 14:47:24 +00:00
Carlos Mocholí e859546b96
Integrate lightning_utilities `is_overridden` (#14620) 2022-09-12 15:16:57 +02:00
Carlos Mocholí 273a9ed8c1
Integrate `lightning_utilities.core.apply_func` (#14537) 2022-09-06 13:52:54 +00:00
Carlos Mocholí 44216fdd69
Integrate `lightning_utilities.core.imports` (#14475)
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-09-06 12:56:20 +00:00
Mansy 1bcb5c301d
[App][CLI] Fix lightning cli --version (#14433)
* [App][CLI] Fix lightning cli --version
2022-09-01 07:58:09 +00:00
thomas chaton a7c01c4754
Introduce lightning connect (#14452)
* update

* update

* update

* update

* Review of content

* Formatting updates

* Fomatting updates

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Updates based on new commits

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update

* update

* update

* update

* Introduce lightning connect (#14183)


Co-authored-by: Luca Antiga <luca.antiga@gmail.com>

Co-authored-by: Felonious-Spellfire <felonious.spellfire@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Luca Antiga <luca.antiga@gmail.com>
2022-08-31 15:59:03 -04:00
Dmitry Frolov 9372981263
[CLI] Cluster logs CLI improvements: new log labels + test coverage increasing (#14459)
* Cluster logs improvements

* Unit tests added

* Labels for processing deletion errors
2022-08-30 22:22:01 -04:00
Marc Skov Madsen 18e2a8eecd
PanelFrontend and Panel Web UI Intermediate docs (#13531)
Co-authored-by: thomas chaton <thomas@grid.ai>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Marc Skov Madsen <masma@orsted.com>
Co-authored-by: Laverne Henderson <laverne.henderson@coupa.com>
Co-authored-by: Felonious-Spellfire <felonious.spellfire@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Mansy <ahmed.mansy156@gmail.com>
Co-authored-by: Jirka <jirka.borovec@seznam.cz>
2022-08-30 00:33:21 +00:00
Mansy 0e30e4a5a0
[App][CI] Fix psutil requirement CI (#14413) 2022-08-26 23:55:22 +00:00
Dmitry Frolov 2182d755c4
[CLI] Adding opportunity to see basic cluster logs (#14334)
* pinning starsessions

* pinning starsessions

* adding strict back to requirements.txt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Duplicated

* Basic implementation

* Basic implementation

* Basic implementation

* Basic implementation

* Common things moved to log helpers file

* Decomposing logs reader classes for reusing

* Setting colors for log levels

* Manifest trimming

* Changes added to CHANGELOG

* Prettifications

* Prettifications

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Logs function name change

* Logs function name change

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* attempt to fix the pydanitc import

* Tests + command name fixes

* Extending tests

* Adding limit argument

* Unmerging CI fix

* Unmerging CI fix

* Adding fields for errors

* Adding log level fixed field width

* Adding absent typing + exeptions raising

* Adding socket error logging

* Addressing comments on cluster list function return value

* Addressing comments on adding e2e tests

* Adding version range for arrow package in reqs

* New unit tests

* arrow time parsing callback modified + unit tests

* helpers updated

* helpers updated

* helpers updated

* One more test

* CMD test fix

* CMD test fix

* CMD test fix

* CMD test fix

* CMD test fix

* LightningClient mocking

* Flaky test removed

Co-authored-by: hhsecond <sherin@grid.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2022-08-23 15:48:22 -04:00
Alec Merdler 0b1a29b5eb
Remove references to local app admin view (#14306)
The local app '/admin' route is being removed because it does
not provide any value, so we need to remove references from it
in the CLI.
2022-08-19 12:29:44 -04:00
Raphael Randschau d71dba3721
BYOC: fix default types for cluster instance types (#14260) 2022-08-18 14:12:59 -07:00
Adrian Wälchli 7c329dd3ac
Warn when http URLs are configured (#14233)
* add a warning

* add test

* add test

* add changelog

* remove todo

* clarify http won't work in cloud

* Apply suggestions from code review

Co-authored-by: Sherin Thomas <sherin@grid.ai>

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Sherin Thomas <sherin@grid.ai>
2022-08-17 10:17:11 -04:00
Mansy 562d22f0c8
Fix install latest version of app/component (#14181)
* fix install latest version of app/component

* Add changelog

* a better testcase

* Update src/lightning_app/CHANGELOG.md

Co-authored-by: mansy <mansy@lightning.ai>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2022-08-15 09:31:16 -04:00
Raphael Randschau 98ded4524f
[CLI] change cluster creation cost savings mode default (#14132)
* [CLI] change cluster creation cost savings mode default

instead of having customers opt-into cost savings mode, we'll ask them to opt-out of cost savings mode.
2022-08-11 08:19:21 -07:00
Rick Izzo 7c8c996f6a
Feature GRID-9731: Update Lightning Cloud.py Backend to Accept Drive Specs (2/2) (#14106)
initial work adding drives to create work API from framework cloud dispatcher
2022-08-11 13:22:59 +00:00
thomas chaton 6eed72b621
(app) Introduce configure_api and Post, Get, Delete, Put HttpMethods (#13945) 2022-08-11 10:35:00 +00:00
panos-is 784b60412c
(app) Add s3 drive type (1/2) (#14002)
* Add S3 protocol and optimization field to the drive object

* Add a list of drives to the work specification

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add only protocol for s3 drives, no optimization arguments, and add tests

* added trailing slash criteria

* allow slash in s3 drives

* fix

* fixed test issues

Co-authored-by: Panos Lantavos-Stratigakis <default-email@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Rick Izzo <rick@grid.ai>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Rick Izzo <rlizzo@users.noreply.github.com>
2022-08-10 20:07:23 +00:00
thomas chaton b8b8f033fd
(app) Run the flow only if the state has updated 1/2 (#14076) 2022-08-10 14:56:41 +02:00
thomas chaton 2f7daac4b8
Use websockets in e2es (#14138) 2022-08-10 13:17:29 +02:00
Adam Bobowski ddb476d334
[App] Application logs in CLI (#13634) 2022-08-10 09:48:06 +00:00
Raphael Randschau 619c2ff058
[CLI] fix cluster creation CLI requiring instance-type selection (#14056)
fix cluster creation CLI requiring instace-type selection

we've marked `instance_types` as `required=False`, but the CLI calls `split` on the value.
So if nothing is provided, we'll actually receive a runtime error, effectively rendering the flag as required.

Co-authored-by: thomas chaton <thomas@grid.ai>
2022-08-09 12:17:57 -07:00
thomas chaton 55ae812dbf
Resolve increased time. (#14074) 2022-08-08 15:48:50 +02:00
Rick Izzo b4ade232c8
Fix: Start Lightning App on Cloud if Repo Begins With Name "Lightning" (#14025) 2022-08-08 11:13:25 +00:00
Raphael Randschau 26d69ceada
[CLI] add support for listing apps (#13987)
* add support for listing apps

* update changelog with correct PR number

* add tests for pagination

* fix wrong mock on test_cli

* ensure all enum values are accounted for

* make AppManager and AppList protected, add limit to pagination calls

* add restarting transition /w tests

* add state transition not yet run with tests
2022-08-05 13:42:00 -07:00
Adam Bobowski 12a061f2aa
[App] Increased DeepDiff's verbose level to properly handle dict changes (#13960) 2022-08-05 07:57:00 +00:00
Raphael Randschau 341c63c2b9
[CLI] add support to run app on a specific cluster (#13894)
Add `--cluster-id` flag which can be passed to `lightning run app` if the `--cloud` flag is present.
This allows you to run your Lightning AI apps on Lightning AI BYOC clusters running on your own cloud provider infrastructure.

Co-authored-by: William Falcon <waf2107@columbia.edu>
Co-authored-by: Laverne Henderson <laverne.henderson@coupa.com>
2022-08-04 10:48:29 -07:00