-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Lightning App with remote storage #17426
Conversation
⚡ Required checks status: All passing 🟢Groups summary🟢 lightning_app: Tests workflow
These checks are required after the changes to 🟢 lightning_app: Examples
These checks are required after the changes to 🟢 lightning_app: Azure
These checks are required after the changes to 🟢 lightning_app: Docs
These checks are required after the changes to 🟢 mypy
These checks are required after the changes to 🟢 installThese checks are required after the changes to Thank you for your contribution! 💜
|
@@ -67,57 +67,42 @@ jobs: | |||
'App: v0_app': | |||
name: "v0_app" | |||
dir: "public" | |||
queue_type: "redis" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ethanwharris why do we drop redis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this won't be supported going forward.
@@ -0,0 +1 @@ | |||
venv/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is automatically generated when the app runs. Better to have it in the repo.
if value not in _CLUSTER_DRIVERS: | ||
raise ValueError(f"Found {value} cluster driver. The value needs to be in {_CLUSTER_DRIVERS}.") | ||
return value | ||
return "direct" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why unset LIGHTNING_CLUSTER_DRIVER
is not enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't used and we can drop it entirely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For another PR once the fire is being us.
@@ -388,19 +388,30 @@ def get(self, timeout: Optional[float] = None) -> Any: | |||
if timeout is None: | |||
while True: | |||
try: | |||
return self._get() | |||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use contextmanager.suppress(...)
return self._get() | ||
try: | ||
return self._get() | ||
except requests.exceptions.HTTPError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you pls add a note about why this error happens and it is fine to ignore it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can happen if the queue isn't responsive. This would lead for the app to die entirely. This adds some sort of fault tolerancy during CP re-deployment.
@@ -53,6 +53,7 @@ def check_content(button_name, text_content): | |||
has_logs = False | |||
while not has_logs: | |||
for log in fetch_logs(["flow"]): | |||
print(log) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch !
* update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update --------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64)
* update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update --------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64)
* update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update --------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64)
* update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update * update --------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64)
--------- Co-authored-by: thomas <[email protected]>
--------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64) # Conflicts: # examples/app_commands_and_api/.lightningignore # tests/tests_app/core/test_constants.py # tests/tests_app/runners/test_cloud.py
--------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64) # Conflicts: # examples/app_commands_and_api/.lightningignore # tests/tests_app/core/test_constants.py # tests/tests_app/runners/test_cloud.py
--------- Co-authored-by: thomas <[email protected]> (cherry picked from commit 3688b64) # Conflicts: # examples/app_commands_and_api/.lightningignore # tests/tests_app/core/test_constants.py # tests/tests_app/runners/test_cloud.py
What does this PR do?
Currently, accessing the Drive or Path doesn't work. This PR should address it.
Fixes #<issue_number>
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
cc @Borda @carmocca