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

CookBook #21

Open
dneise opened this issue Jan 13, 2017 · 0 comments
Open

CookBook #21

dneise opened this issue Jan 13, 2017 · 0 comments

Comments

@dneise
Copy link
Member

dneise commented Jan 13, 2017

I did something horribly inefficient to learn about the current status of our last submission...

Then I came up with this ... wanted to share it:

database.close(); database.connect()  # obligatory to stay connected ... :-(
x = XML.get(XML.name == 'single_pe_extraction_pass_1')
states = ProcessingState.select()
for s in states:
    print(s, Job.select().where(Job.xml == x).where(Job.status == s).count())

failed 77
inserted 100670
queued 199
running 101
success 1868
walltime_exceeded 717
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

1 participant