-
Notifications
You must be signed in to change notification settings - Fork 569
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
Move priority setting to schedule.json #161
Move priority setting to schedule.json #161
Conversation
448284c
to
c131c0b
Compare
Codecov Report
@@ Coverage Diff @@
## master #161 +/- ##
==========================================
- Coverage 68.48% 68.37% -0.12%
==========================================
Files 17 17
Lines 860 860
Branches 104 104
==========================================
- Hits 589 588 -1
- Misses 241 242 +1
Partials 30 30
Continue to review full report at Codecov.
|
Needs testing with custom ws, scheduler and queue. |
9d709b7
to
701c609
Compare
TODO (later): document testing custom components with zope.interface.verify |
701c609
to
221910e
Compare
Priorities are of interest to schedulers and queues, not processes.
Tests must fail for customized scheduler/queue that uses the old argspec
This is for those who may have written their own scheduler or queue. Their code will not break but zope.interface.verify, if used in tests will throw exceptions to warn them.
221910e
to
cd35bd4
Compare
Will merge if no comment. |
I have never used the priority option before. |
It's meant to set the priority of a scheduled run |
It seems that jobs of project 'TESTING2' would not be scheduled BTW, should/could we show the priority info in the jobs page, |
Makes sense, yes. |
any comment before merge? |
I think it’s ready to go. |
Implemented in PR #343. |
Continued from #144 (comment)
The arguments passed from component to component contain arguments addressed to different components, arguments addressed to the crawl process all in a single dictionary. The components shouldn't be poping keys from the dictionary containing the crawl arguments.
Priorities are of interest to schedulers and queues, not processes.
That's why I make the setting a positional argument in their method calls.