2

我有 2 个计划运行的顶级课程。其中一个计划在每天凌晨 1:00 运行。另一个是我创建的一个垃圾类,用于解决第一个没有运行的原因。基本上正在发生的事情是作业卡在作业监视器中的“排队”中。它永远保持这种状态。下面是测试类的代码。出于安全原因,我无法发布真实的,但这个正在做完全相同的事情。作为旁注,它们都在沙箱中运行良好。如果使用匿名 apex 运行,它们在生产和沙盒中也都运行良好。

global class CheqTest implements Schedulable {
    global void execute(SchedulableContext sc)
    {           
        string one = 'Im making a note here';
        StillAlive();   
    }
    global void StillAlive    (){
        string one = 'Im making a note here';
        one = 'Huge success!';
        one = 'Its hard to overstate my satisfaction';
        one = 'Aperture Science';
        one = 'We do what we must because we can';
        one = 'For the good of all of us';           
        one = 'Except the ones who are dead';
        one = 'But theres point crying over every mistake';
        one = 'We just keep on trying till we run out of cake';
        one = 'And the science gets done and we make a neat gun';
        one = 'For the people who are still alive';
        one = 'Im not even angry';
        one = 'Im being so sincere right now';
        one = 'Even though you broke my heart and killed me';
        one = 'And tore me to pieces';
        one = 'And threw every piece into a fire';
        one = 'As they burned it hurt because I was so happy for you!';
        one = 'Now these points of data make a beautiful line';
        one = 'And were out of beta were releasing on time';
        one = 'Im making a note here';
        one = 'Huge success!';
        one = 'Its hard to overstate my satisfaction';
        one = 'Aperture Science';
        one = 'We do what we must because we can';
        one = 'For the good of all of us';           
        one = 'Except the ones who are dead';
        one = 'But theres point crying over every mistake';
        one = 'We just keep on trying till we run out of cake';
        one = 'And the science gets done and we make a neat gun';
        one = 'For the people who are still alive';
        one = 'Im not even angry';
        one = 'Im being so sincere right now';
        one = 'Even though you broke my heart and killed me';
        one = 'And tore me to pieces';
        one = 'And threw every piece into a fire';
        one = 'As they burned it hurt because I was so happy for you!';
        one = 'Now these points of data make a beautiful line';
        one = 'And were out of beta were releasing on time';
        System.Debug('This was a triumph');
        }
}

如果有人对他们为什么不运行帮助有任何想法,将不胜感激。

4

0 回答 0