Skip to content
Discussion options

You must be logged in to vote

Currently tasks have to be external processes, but there are multiple ways to run a command after finishing a task.

  1. You can add a subscriber to the task
task:subscribe("on_complete", function(task, status)
  if status == require("overseer").STATUS.SUCCESS then
    -- hot reload
  end
end)

This is very simple, but the downside is that there aren't great affordances for getting the task reference. There are template hooks for adjusting the arguments to a task, and your custom templates also declare their own task arguments, but there are not as many ways to retrieve the task reference once it has been launched. The other downside is that this is getting added as a function, which isn't se…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@n0bra1n3r
Comment options

@stevearc
Comment options

Answer selected by n0bra1n3r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants