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

Fixes #5719 - make pulp async actions cancellable #4238

Merged
merged 3 commits into from Jun 19, 2014

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented Jun 10, 2014

The cancelling is done though the task details: running steps tab

message = if task[:exception]
Array(task[:exception]).join('; ')
elsif task[:error]
"#{task[:error][:code]}: #{task[:error][:description]}"
elsif task[:state] == 'canceled'
"Task canceled"
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need to be handled here (can open an issue if so), but do these need to be marked for i18n and translated at display time?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, better with it than without it

The cancelling is done though the task details: running steps tab
@jlsherrill
Copy link
Member

note that this requires a new version of python-kombu http://repos.fedorapeople.org/repos/pulp/pulp/testing/6Server/x86_64/python-kombu-3.0.15-10.pulp.el6.noarch.rpm

After installing that, cancelling a sync seemed to work. Let me tag the kombu into katello nightly

@jlsherrill
Copy link
Member

Playing with this a tad more it seems sort of annoying that when i click cancel, i have to sit and wait a while before it shows up as cancelled. In my case I went an cancelled it twice and pulp came back and threw an ISE because i was trying to cancel a non-stopped task.

resetting the suspend time would help with this, maybe we should try that first
ideally as part of the cancel request from the user we would know whether or not it actually cancelled.

@iNecas
Copy link
Member Author

iNecas commented Jun 16, 2014

@jlsherrill Could you re-test, should give the best results with theforeman/foreman-tasks#69

@iNecas
Copy link
Member Author

iNecas commented Jun 17, 2014

The foreman-tasks with the improvements in waiting for the canceling released with foreman-tasks-0.6.3

@jlsherrill
Copy link
Member

@iNecas much much better!! ACK

iNecas added a commit that referenced this pull request Jun 19, 2014
Fixes #5719 - make pulp async actions cancellable
@iNecas iNecas merged commit 3e6e077 into Katello:master Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants