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

New work interface #1801

Closed
wants to merge 17 commits into from

Conversation

marta-lokhova
Copy link
Contributor

{should NOT be merged}

This is an initial prototype of the Work interface described here. It includes implementations of the new interface (BasicWork & Work), the scheduler (WorkScheduler), as well as a few examples on how existing works can utilize it (including RunCommandWork, DownloadBucketsWork etc).

For the refactored works, it's better to look at the whole files (as opposed to diffs). I left some of the tests from before I made the breaking changes (like actually renamed the classes) in case it is useful.

src/work/BasicWork.cpp Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
src/work/BasicWork.h Outdated Show resolved Hide resolved
src/work/BasicWork.h Outdated Show resolved Hide resolved
src/work/BasicWork.h Outdated Show resolved Hide resolved
src/historywork/RunCommandWork.h Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
src/work/BasicWork.cpp Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
@marta-lokhova
Copy link
Contributor Author

Thanks for reviewing! I've made some updates, mostly addressing design-related comments. Like I mentioned before, I'm not focusing on particular optimizations/other nits for this iteration, as it will be addressed once we agree on the design.

src/work/Work.cpp Outdated Show resolved Hide resolved
src/historywork/RunCommandWork.h Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
src/work/Work.h Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Outdated Show resolved Hide resolved
src/work/WorkScheduler.cpp Outdated Show resolved Hide resolved
src/work/Work.h Outdated Show resolved Hide resolved
src/work/Work.h Show resolved Hide resolved
Copy link
Contributor

@MonsieurNicolas MonsieurNicolas left a comment

Choose a reason for hiding this comment

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

A few questions just on BasicWork for now

src/work/BasicWork.h Show resolved Hide resolved
src/work/BasicWork.h Show resolved Hide resolved
src/work/BasicWork.h Outdated Show resolved Hide resolved
src/work/BasicWork.h Outdated Show resolved Hide resolved
src/work/BasicWork.h Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
src/work/BasicWork.cpp Show resolved Hide resolved
src/work/BasicWork.cpp Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Outdated Show resolved Hide resolved
src/work/BasicWork.cpp Outdated Show resolved Hide resolved
@marta-lokhova
Copy link
Contributor Author

This prototype has served its purpose - closing it in favor of #1819

@marta-lokhova marta-lokhova deleted the new_work_interface branch April 23, 2020 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants