File tree Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Expand file tree Collapse file tree 4 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
22
22
- {pull}` 569 ` removes the hooks related to the creation of the DAG.
23
23
- {pull}` 571 ` removes redundant calls to ` PNode.state() ` which causes a high penalty for
24
24
remote files.
25
+ - {pull}` 573 ` removes the ` pytask_execute_create_scheduler ` hook.
25
26
26
27
## 0.4.5 - 2024-01-09
27
28
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ The following hooks execute the tasks and log information on the result in the t
69
69
``` {eval-rst}
70
70
.. autofunction:: pytask_execute
71
71
.. autofunction:: pytask_execute_log_start
72
- .. autofunction:: pytask_execute_create_scheduler
73
72
.. autofunction:: pytask_execute_build
74
73
.. autofunction:: pytask_execute_task_protocol
75
74
.. autofunction:: pytask_execute_task_log_start
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def pytask_post_parse(config: dict[str, Any]) -> None:
57
57
def pytask_execute (session : Session ) -> None :
58
58
"""Execute tasks."""
59
59
session .hook .pytask_execute_log_start (session = session )
60
- session .scheduler = session . hook . pytask_execute_create_scheduler (session = session )
60
+ session .scheduler = TopologicalSorter . from_dag (session . dag )
61
61
session .hook .pytask_execute_build (session = session )
62
62
session .hook .pytask_execute_log_end (
63
63
session = session , reports = session .execution_reports
@@ -73,12 +73,6 @@ def pytask_execute_log_start(session: Session) -> None:
73
73
console .print ()
74
74
75
75
76
- @hookimpl (trylast = True )
77
- def pytask_execute_create_scheduler (session : Session ) -> TopologicalSorter :
78
- """Create a scheduler based on topological sorting."""
79
- return TopologicalSorter .from_dag (session .dag )
80
-
81
-
82
76
@hookimpl
83
77
def pytask_execute_build (session : Session ) -> bool | None :
84
78
"""Execute tasks."""
Original file line number Diff line number Diff line change @@ -232,16 +232,6 @@ def pytask_execute_log_start(session: Session) -> None:
232
232
"""
233
233
234
234
235
- @hookspec (firstresult = True )
236
- def pytask_execute_create_scheduler (session : Session ) -> Any :
237
- """Create a scheduler for the execution.
238
-
239
- The scheduler provides information on which tasks are able to be executed. Its
240
- foundation is likely a topological ordering of the tasks based on the DAG.
241
-
242
- """
243
-
244
-
245
235
@hookspec (firstresult = True )
246
236
def pytask_execute_build (session : Session ) -> Any :
247
237
"""Execute the build.
You can’t perform that action at this time.
0 commit comments