i have this task in /lib/tasks/scriping.rake
namespace :scriping do
    task :list => :environment do
        client = CloudscrapeClient.new
        Robot.all.each do |robot|
            execution_id = client.runs(robot.list_run_id).execute(connect: true)
        end
    end
i have tried this code in controller. But it's not working.
Tasks::scriping.execute
When is run this command in console it works!
bundle exec rake scriping:list
how can i call task :list this task from controller
 
    