sandynz commented on code in PR #20013:
URL: https://github.com/apache/shardingsphere/pull/20013#discussion_r941102604
##########
shardingsphere-kernel/shardingsphere-data-pipeline/shardingsphere-data-pipeline-api/src/main/java/org/apache/shardingsphere/data/pipeline/api/context/PipelineJobContext.java:
##########
@@ -66,4 +69,25 @@ public interface PipelineJobContext {
* @return job process context
*/
PipelineProcessContext getJobProcessContext();
+
+ /**
+ * Get task configuration.
+ *
+ * @return task configuration
+ */
+ TaskConfiguration getTaskConfig();
+
+ /**
+ * Get init progress.
+ *
+ * @return init progress
+ */
+ JobProgress getInitProgress();
+
+ /**
+ * Get source data source.
+ *
+ * @return source data source
+ */
+ PipelineDataSourceWrapper getSourceDataSource();
Review Comment:
It's better not put them in `PipelineJobContext`.
We could transfer these fields to InventoryTaskSplitter, or add them in
sub-interface of PipelineJobContext.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]