Job system for activity tracking #5284
Draft
+3,065
−624
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a job system, a set of base classes for jobs. The job system is generic, with a mixin class to add application-specific behavior. The mixin class for the library deals with
StorageManagerandContextResources, etc. There's only one remainingStorageManagermember variable; it's in the mixin class. Thestorage_manager()accessor functions are also in the same place.Add a registry system centered on
class Registry. The system supports automatic first-pass registration at construction time. This registry is the basic for the tree structure in the job system.class JobRootis now a base class ofclass Context, now split intoContextBaseandContextso that the storage manager member variable is available for theJobRootconstructor.class JobBranchis now a base class ofclass Queryandclass Consolidator, among others. Rework all the constructors to take a singleJobParentargument rather than separate arguments for resources, cancellation sources, and storage managers.JobParent::make_cancellation_sourceis now the sole source ofCancellationSourceobjects. AddContext::cancel_all_tasks(), currently as a proxy for the same function inStorageManager. This allowed removal of the accessorstorage_manager()in the context C API handle. Remove now-unusedtiledb_ctx_handle_t::make_cancellation_source().TYPE: IMPROVEMENT
DESC: Job system for activity tracking