I Created TASK like below
CREATE OR REPLACE TASK test_task
WAREHOUSE = TEST_WH
SCHEDULE = '1 MINUTE'
AS
BEGIN
CALL SP_TASKEXECUTION('CREATE_TABLE_PROC_NAME');
END;
I see task created and in suspended state. Now i ran ALTER TASK test_task to RESUME the task. Now im seeing the task status as started. But it is not running. Also i tried to EXECUTE the task Still it is in started state
SP_TASKEXECUTION : This procedure takes another procedure name as input and execute.
CREATE_TABLE_PROC_NAME : This procedure contains create or replace table statment.
Both are working fine when i executes manually. but when it is scheduled through tasks it got stuck in started state .
My question is what can be the possible reasons and how to fix this?