SalesForce计划的apex作业卡在队列中
我有两个apex课程,我已经安排好了。其中一个计划在每天早上1:00运行。另一个是我创建的垃圾类,用于解决第一个垃圾类没有运行的问题。基本上,正在发生的是作业在作业监视器中停留在“排队”状态。它永远这样。下面是测试类的代码。出于安全原因,我不能发布真实的一个,但这一个正在做完全相同的事情。作为补充说明,它们都在沙箱中正常运行。如果使用匿名apex运行,则它们在生产和沙箱中都运行良好SalesForce计划的apex作业卡在队列中,salesforce,apex-code,Salesforce,Apex Code,我有两个apex课程,我已经安排好了。其中一个计划在每天早上1:00运行。另一个是我创建的垃圾类,用于解决第一个垃圾类没有运行的问题。基本上,正在发生的是作业在作业监视器中停留在“排队”状态。它永远这样。下面是测试类的代码。出于安全原因,我不能发布真实的一个,但这一个正在做完全相同的事情。作为补充说明,它们都在沙箱中正常运行。如果使用匿名apex运行,则它们在生产和沙箱中都运行良好 global class CheqTest implements Schedulable { global
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');
}
}
如果任何人对他们为什么不运行帮助有任何想法,我们将不胜感激。您可以直接在Salesforce.stackexchange.com上向Salesforce提问这是一个只能由Salesforce支持部门解决的问题。很明显,您的组织或基础实例存在问题。