• Denis Braslavskiy
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Schedulable apex class staying "Queued" and then "Aborted"  but not executing.
 
global class woww_refresh_v2 implements Schedulable {
    
    public static void execute(SchedulableContext SC) {
       try{
        list<Challenge__c> chal = [SELECT Id, Start_Date__c 
                                       FROM Challenge__c 
                                       WHERE Is_Started__c=true];
            list<Participant__C> participants=[SELECT Id, Name__c
                                               FROM Participant__C];
            list<mdg_daily_tip__c> tips=[SELECT Description__c, Name
                                         FROM mdg_daily_tip__c
                                         WHERE Date__c=TODAY];
             
.......................

            Ch_Data__c challdata=new Ch_Data__c(
                                    status__c = status,
                                    ...
                                );
                                insert challdata;
     } catch(Exception e)
        {
                    
        }
   }
}

What can I do wrong? 
Schedulable apex class staying "Queued" and then "Aborted"  but not executing.
 
global class woww_refresh_v2 implements Schedulable {
    
    public static void execute(SchedulableContext SC) {
       try{
        list<Challenge__c> chal = [SELECT Id, Start_Date__c 
                                       FROM Challenge__c 
                                       WHERE Is_Started__c=true];
            list<Participant__C> participants=[SELECT Id, Name__c
                                               FROM Participant__C];
            list<mdg_daily_tip__c> tips=[SELECT Description__c, Name
                                         FROM mdg_daily_tip__c
                                         WHERE Date__c=TODAY];
             
.......................

            Ch_Data__c challdata=new Ch_Data__c(
                                    status__c = status,
                                    ...
                                );
                                insert challdata;
     } catch(Exception e)
        {
                    
        }
   }
}

What can I do wrong?