-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add status CANCELED
#747
Add status CANCELED
#747
Conversation
✅ Deploy Preview for kaleidoscopic-dango-0cf31d canceled.
|
59cb551
to
e778e13
Compare
conda_store = self.worker.conda_store | ||
with conda_store.session_factory() as db: | ||
build_cleanup(db, conda_store, build_ids, reason) | ||
build_cleanup(db, conda_store, build_ids, reason, is_canceled) |
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.
|
||
|
||
def downgrade(): | ||
op.execute("DELETE FROM build WHERE status = 'CANCELED'") |
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 migration does the same thing as the one we have for the installer:
https://github.com/conda-incubator/conda-store/blob/main/conda-store-server/conda_store_server/alembic/versions/57cd11b949d5_add_installer.py
The reason the downgrade
part is different is because it's a no-op here with canceled, since the field size is the same.
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.
Looks good. Thanks @nkaretnikov 🚀
bc576d4
to
61be69f
Compare
@gabalafou I have not verified if this is working as expected, could you check please? |
Fixes #547.
Description
This pull request: adds status
CANCELED
, which is displayed in the web UI when the user cancels a build.Pull request checklist
Additional information
How to test