Skip to content

Commit

Permalink
put the rebuild reason under the status line
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed Nov 13, 2024
1 parent 892ed30 commit 74d9c00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hancho.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,6 @@ async def task_main(self):
app.tasks_skipped += 1
self._state = TaskState.SKIPPED
return
elif verbosity or debug:
log(f"{color(128,128,128)}Reason: {self._reason}{color()}")

try:
# Wait for enough jobs to free up to run this task.
Expand All @@ -815,7 +813,10 @@ async def task_main(self):
self._state = TaskState.RUNNING_COMMANDS
app.tasks_running += 1
self._task_index = app.tasks_running

self.print_status()
if verbosity or debug:
log(f"{color(128,128,128)}Reason: {self._reason}{color()}")

for command in flatten(self.config.command):
await self.run_command(command)
Expand Down

0 comments on commit 74d9c00

Please # to comment.