I updated my code to
def call(csv_path, email) do
task = Task.async(fn -> do_async_task(csv_path, email) end)
res = send_status()
res + Task.await(task)
end
def send_status() do
%{response: %{message: "Request Initiated"}}
end
def do_async_task(csv_path, email) do
csv_path
|> read_csv
|> dump_to_csv
|> add_attachment
|> Email.create(email)
|> Email.send_email
end
But still no luck can you guys help me here?






















