Autoloader File Notification Mode not working as expected

ibrahim21124
Databricks Partner

I am using this given code to read from a source location in ADLS Gen 2 Azure Storage Container.

 

core_df = (
        spark.readStream.format("cloudFiles")
        .option("cloudFiles.format", "json")
        .option("multiLine", "false")
        .option('cloudFiles.allowOverwrites', 'true')
        .option("cloudFiles.useNotifications", 'true')
        .option("cloudFiles.fetchParallelism", 1)
 
I am reading files of the format
xxxxx.abc.json
 
When I am using full refresh I am getting all the files in the given container. But When I try and upload a new file and try to use incrementally I am not getting any new file. Is there any option or argument that can help me deal with this scenario