我有两个我计划运行的顶点类。其中一个定于每天早上1点运行。另一个是我创建的垃圾类,用于解决第一个没有运行的原因。基本上发生的事情是工作被困在工作监视器中的“排队”。它永远保持这种状态。下面是测试类的代码。出于安全原因,我无法发布真实的一个,但是这个是完全相同的。作为旁注,他们都在沙盒中安排好。如果使用匿名顶点运行,它们在生产和沙箱中都可以正常运行。
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');
}
}
如果任何人有任何想法,他们为什么不运行帮助将不胜感激。