resque-web icon indicating copy to clipboard operation
resque-web copied to clipboard

Ajaxify retry and remove links in Failure queue. Prevent expensive p…

Open knappe opened this issue 10 years ago • 16 comments

…age reloads when removing or retrying links.

knappe avatar May 21 '15 03:05 knappe

I'd love to hear some feedback on this PR.

The goal was to remove the expensive cycle of reloading the page for each job that has been removed from the failure queue. Often I've found that this cycle of removing or retrying with a reloading of the page can take much too long on an overloaded queue. Ideally this PR would shorten the cycle of getting bad jobs out of the queue by reducing the long load cycle.

knappe avatar May 21 '15 03:05 knappe

Coverage Status

Coverage increased (+0.03%) to 83.39% when pulling 4ab4d5228e3f3be6e2dae2abddc45ca92543a725 on knappe:Ajaxify-Remove-Retry-Links into 10f2d2e328843487c5dd251a010dffd6a3b10f8e on resque:master.

coveralls avatar May 21 '15 03:05 coveralls

This looks to have failed (only) on Ruby 2.2 to install sqlite3.

An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.

knappe avatar May 21 '15 03:05 knappe

Thanks for your PR! It looks great.

Unfortunately I probably won't have time to try this out properly anytime soon.

Could anyone else contributing PR's to this project perhaps give a :+1: ? @mattgibson @kirillplatonov

mcfiredrill avatar May 21 '15 03:05 mcfiredrill

Coverage Status

Coverage increased (+0.03%) to 83.39% when pulling 9b3acc7aa4b9e0c766bcd98159aca033926be18f on knappe:Ajaxify-Remove-Retry-Links into 10f2d2e328843487c5dd251a010dffd6a3b10f8e on resque:master.

coveralls avatar May 21 '15 04:05 coveralls

One thing of note here.

I had some trouble testing this out because mocking out a Resque::Failure for the full stack gave me some trouble. I'd appreciate it if someone check if this works well for a legitimate failure.

knappe avatar May 21 '15 04:05 knappe

That failure is the same on that I ran into. Bundle update fixes it. I'll make a PR later to do a bundle update for master, which should fix it for all PRs. Will take a look at the code properly then.

mattgibson avatar May 21 '15 11:05 mattgibson

@knappe The tests should pass now if you rebase on master.

mcfiredrill avatar May 26 '15 00:05 mcfiredrill

Coverage Status

Coverage increased (+0.03%) to 83.93% when pulling 0a23909ac89e7fc5c4543330059d75769adf228f on knappe:Ajaxify-Remove-Retry-Links into 389f448bdd60bdbec6399d3ee2e5adc9243d01b2 on resque:master.

coveralls avatar May 26 '15 06:05 coveralls

Coverage Status

Coverage increased (+0.03%) to 83.93% when pulling 0a23909ac89e7fc5c4543330059d75769adf228f on knappe:Ajaxify-Remove-Retry-Links into 389f448bdd60bdbec6399d3ee2e5adc9243d01b2 on resque:master.

coveralls avatar May 26 '15 06:05 coveralls

@mcfiredrill Thanks! Rebase'd.

knappe avatar May 26 '15 06:05 knappe

@mcfiredrill @mattgibson Anyone had a chance to look at this, by chance?

knappe avatar Jun 16 '15 05:06 knappe

@knappe I haven't actually tried it but the code looks good.

mcfiredrill avatar Jun 16 '15 09:06 mcfiredrill

@mcfiredrill @mattgibson Just checking in. It has been month since I last checked.

knappe avatar Jul 19 '15 06:07 knappe

@mcfiredrill @mattgibson @kirillplatonov PR has been ready since May, any chance I could get someone to take a look at it?

knappe avatar Sep 18 '15 21:09 knappe

As much as I hate them, a browser driven test is probably needed here since it is Javascript.

Must the Javascript be part of the view? Can we not separate out into its own asset perhaps?

I'll take a look at what this does for real, and comment on the code directly as well

omarqureshi avatar Dec 10 '15 17:12 omarqureshi