Skip to content

added the query kill test - #884

Open
tomerk wants to merge 54 commits into
uwescience:integration_testsfrom
tomerk:kill-query-integration-test
Open

added the query kill test#884
tomerk wants to merge 54 commits into
uwescience:integration_testsfrom
tomerk:kill-query-integration-test

Conversation

@tomerk

@tomerk tomerk commented Mar 3, 2017

Copy link
Copy Markdown

Requires the python api query kill to be added (uwescience/myria-python#61)

@BrandonHaynes @senderista

@BrandonHaynes

Copy link
Copy Markdown
Member

uwescience/myria-python#61 has been merged and a new release of myria-python pushed to pypi.

Comment thread integration_tests.py
"""
plan = self.connection.compile_program(program)
# We submit with submit_plan so as to not block
query = MyriaQuery.submit_plan(plan)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to just call a nonblocking MyriaQuery API with the program string. I guess this could be done in myria-python by either adding a new method to MyriaQuery that just generates the plan and calls MyriaConnection.submit_query(), or by adding a nonblocking version of MyriaConnection.execute_program(). @BrandonHaynes could you weigh in?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we support asynchronous execution in MyriaQuery but not in the connection facade. I'll update MyriaConnection.execute_program to support this and add an overload to MyriaQuery.submit_query.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nonblocking overload added in uwescience/myria-python#62

Comment thread integration_tests.py
x = [0 as exp, 1 as val];
do
x = [from x emit exp+1 as exp, 2*val as val];
while [from x emit max(exp) < 1000];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May as well make this limit humongous (say a billion) to avoid races, since we're going to kill it at the first opportunity.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants