Skip to content
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

Cancel/clear queued base learners #46

Open
CSNoyes opened this issue Jul 7, 2017 · 2 comments
Open

Cancel/clear queued base learners #46

CSNoyes opened this issue Jul 7, 2017 · 2 comments

Comments

@CSNoyes
Copy link

CSNoyes commented Jul 7, 2017

Accidentally executed a huge grid search. Even starting/stopping Redis and Xcessive won't clear the queue and theres no way to cancel all pending tasks. Please advise.

@reiinakano
Copy link
Owner

reiinakano commented Jul 8, 2017

HI! I am aware of this issue and am currently mulling the best way to add an option to do this in the UI.

For now, please open up a Python interpreter and run the following script to delete all queued tasks from Xcessiv.

import xcessiv

PATH_TO_XCESSIV_PROJECT_FOLDER = "/path/to/xcessiv/project/folder/"

with xcessiv.functions.DBContextManager(PATH_TO_XCESSIV_PROJECT_FOLDER) as session:
    base_learners = session.query(xcessiv.models.BaseLearner).filter_by(job_status='queued').all()
    print(len(base_learners))
    for bl in base_learners:
        session.delete(bl)
    session.commit()

OPTIONAL:
Finally, once you're done, it might be helpful to clear your Redis database to get rid of the junk. Take note that this step will cancel all pending tasks. To do this, run

redis-cli -n 8 flushdb to delete database 8 (default used by Xcessiv)

@ejdanderson
Copy link

It would be great if you could use the checkboxes (select all/select none) to do bulk actions for base learner - Add to stack, Delete, etc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants