Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Paper2Poster/Paper2Poster
/ get_depth
Method
get_depth
camel/tasks/task.py:284–288 ·
view source on GitHub ↗
r"""Get current task depth.
(self)
Source
from the content-addressed store, hash-verified
282
self.update_result(result)
283
284
def
get_depth(self) -> int:
285
r
""
"Get current task depth."
""
286
if
self.parent is None:
287
return
1
288
return
1 + self.parent.get_depth()
289
290
291
class
TaskManager:
Callers
1
_handle_failed_task
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected