]> git.hungrycats.org Git - bees/commit
task: do not allow queue loops in priority queueing mode
authorZygo Blaxell <bees@furryterror.org>
Sun, 12 Jan 2025 20:17:21 +0000 (15:17 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sun, 12 Jan 2025 20:28:26 +0000 (15:28 -0500)
commita819d623f75028b82d05315526fb34139d1b84f2
tree9feb32a2c6f028065fffb74bb4369d6bbef477f2
parentde9d72da80ee6452bc7948c15394f5437ae81533
task: do not allow queue loops in priority queueing mode

Tasks using non-priority FIFO dependency tracking can insert themselves
into their own queue, to run the Task again immediately after it exits.

For priority queues, this attempts to splice the post-exec queue into
itself, which doesn't seem like a good idea.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
lib/task.cc