更新时间:2021-11-06 21:26:10
据我所知,我们无法对30秒的限制做任何事情,并且在脚本完成之前不会刷新输出.您可以尝试将处理逻辑分为两部分吗?
As far as I know we can't do anything about the 30 second limit and the output won't be flushed before the script finishes. Can you try splitting your processing logic into 2 pieces?
要完成的工作"可能是新产生的过程(请查看 pcntl_fork()函数,但对我来说似乎不太有希望)或某种方式将数据存储在文件或数据库中并定期使用另一个脚本进行处理,例如计划每5个运行一次分钟?
The "job to be done" could be a newly spawned process (check out the comments for the pcntl_fork() function but they don't look too promising to me) or some way to store the data in file or database and periodically process it with another script, for example scheduled to run every 5 minutes?
如果60秒钟能以某种方式拯救您,则可以将出站消息重写为Apex的标注.基本上,您然后编写自己的SOAP信封并将其发送到任何http地址.您可以将其触发.有关此方法的限制,请参见此处.
If 60 seconds would somehow save you, you could rewrite your outbound message into a callout from Apex. Basically you then write your own SOAP envelope and send it to any http address. You could put it in a trigger. See here for limitations of this approach though.
其他咆哮: