abantos / bolt

A task automation tool (similart to grunt) for Python
MIT License
15 stars 8 forks source link

Fix teardown #111

Closed arahmanhamdy closed 4 years ago

arahmanhamdy commented 4 years ago

The teardown call should be in a reversed order (stack) so that if a task depends on a previous task, should be teardown before the previous task

For example: if we have task_1 that starts a webserver and task_2 that populate data task_1 should be run before task_2 but at the same time task_1 should be teardown after task_2

CurroRodriguez commented 4 years ago

Your teardowns should not depend on any other task in the same way that the tasks you implement should not depend on any previous task.