Recently I tried to create a task with Dropwizard that would be triggered within a resource but I can't find a way to do it. I know that there are a integration with Quartz but that doesn't fit my needs (don't want to schedule tasks). Is the only option to make a POST to the task endpoint? If so, how can I do a request to /tasks/myTask ?
I don't want to change the architecture to something like producer/consumer, where I create a task in the resource and enqueue it to have then something executing the tasks enqueued.