Closed pawelmhm closed 2 years ago
waiting for this: https://github.com/scrapy/scrapyd/pull/412 to be merged, after that I'll add unit test here
Sounds good to me. I've done a quick review of #412. Let me know if anything else you need.
Merging #411 (388953d) into master (2eb5409) will increase coverage by
0.03%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #411 +/- ##
==========================================
+ Coverage 79.63% 79.67% +0.03%
==========================================
Files 23 23
Lines 1051 1053 +2
==========================================
+ Hits 837 839 +2
Misses 214 214
Flag | Coverage Δ | |
---|---|---|
unittests | 79.67% <100.00%> (+0.03%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
scrapyd/runner.py | 97.22% <100.00%> (+0.16%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2eb5409...388953d. Read the comment docs.
Windows tests for 3.8+ are hanging for some reason, I tested on local windows laptop, and it worked fine, not sure what is it in environment here. I don't know if it runs this test or if it is just hanging there before starting tests
removed windows, created issue for investigating this
@jpmckinney so I'll integrate this PR with current master and merge. Then we can release 1.3 version, there is a lot of fresh code available. Next step in 2022 we can release 2.0 with this https://github.com/scrapy/scrapyd/pull/421, possibly also this https://github.com/scrapy/scrapyd/pull/304?
@jpmckinney so I'll integrate this PR with current master and merge. Then we can release 1.3 version, there is a lot of fresh code available. Next step in 2022 we can release 2.0 with this #421, possibly also this #304?
Sounds good to me!
This is because get_application launches default Twisted reactor when called from runner, and we want to respect reactor settings from Scrapy. I also think there is some weird circularity in current code.
Fixes #377
How code in master branch works now
To fix this:
on point 5) instead of calling get_application we just get Eggstorage, without application object. I think there is no need for an application object in runner which is called from Application already as subprocess. If root process is creating subprocess I do not expect it to create another object that manages root process. So now it won't call application
TODO