Tasks are independent..when server starts up they start to execute in the configured pattern..
// I want to create a task every time I called the custom mediator//
What is the usecase here? I think , you can have task logic inside your custom mediator