MCPcopy Create free account
hub / github.com/apache/devlake / select_subtasks

Method select_subtasks

backend/python/pydevlake/pydevlake/plugin.py:199–208  ·  view source on GitHub ↗

Returns the list of subtasks names that should be run for given scope and entity types.

(self, scope: ToolScope, config: ScopeConfig)

Source from the content-addressed store, hash-verified

197 return []
198
199 def select_subtasks(self, scope: ToolScope, config: ScopeConfig) -> list[str]:
200 """
201 Returns the list of subtasks names that should be run for given scope and entity types.
202 """
203 subtasks = []
204 for stream in self._streams.values():
205 if set(stream.domain_types).intersection(config.domain_types) and stream.should_run_on(scope):
206 for subtask in stream.subtasks:
207 subtasks.append(subtask.name)
208 return subtasks
209
210 def get_stream(self, stream_name: str) -> Stream:
211 stream = self._streams.get(stream_name)

Callers 1

make_pipeline_stageMethod · 0.95

Calls 2

setFunction · 0.85
should_run_onMethod · 0.45

Tested by

no test coverage detected