question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

project.jobs close_reason support needed

See original GitHub issue

I would like to get the last “finished” job for a spider.

But if I do:

project.jobs(spider='myspider', state='finished', count=-1)

I will only get jobs with a state of finished but this may include jobs with a close_reason of shutdown or something other than “finished”.

I would like to be able to do:

project.jobs(spider='myspider', close_reason='finished', count=-1)

which would of course assume that state is finished as well.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dangracommented, Jan 15, 2018

I think the problem is that server side it will require a non-efficient scan on finished jobs. Although this is still more efficient than filtering client side, it is not as straightforward as we wish.

0reactions
dangracommented, Jan 16, 2018

I think it is going to be client side filtering then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Support Jobs, Employment | Indeed.com
897642 Project Support jobs available on Indeed.com. Apply to Receptionist, Estimator Coordinator, Operations Coordinator and more!
Read more >
Cool Careers | Wounded Warrior Project Job Openings
Cool Careers is the employment home of Wounded Warrior Project® (WWP). Search through our job openings, and join a family of dedicated, passionate...
Read more >
Careers | The Nature Conservancy
Learn more about what it's like working here! Life Inside TNC · Your Career at TNC · Need Help Applying?
Read more >
Search Jobs - Google Careers
Search, find and apply to job opportunities at Google. Bring your insight, imagination and healthy disregard for the impossible. Together, we can build...
Read more >
Return to Work Program - Meta Careers
Throughout the 6-month program, they'll receive training, mentorship, and the support needed to be successful while solving complex, real-world problems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found