doujiang1832 2016-02-03 10:37
浏览 126

大约15分钟后重新执行php函数

I have a php script which is runtime should take about 20-25 minutes, and approximately 15 minutes during execution time it simply re-executing for no apparent reason.

I gave it a token to make sure it kills the second execution before it runs again, but it's not the solution I prefer to use in the long run.

Some details about the script:

  • It ignites after a socket connection (socket does not timeout nor restarting at any point of the session.)
  • I gave the php script ignore_user_abort(true) in order to prevent the script from ending when user goes somewhere else.

  • I don't get any execution runtime errors, or any errors at all... In the client side I get a GET error message to the script after 15 minutes, which is actually the second execution try. It's still running and socket is still delivering data, though it appears the script has ended.

  • There are no two separated requests

I'm not sure what could be the problem of it, hopefully one of the masters here could hint with a clue?

Much thanks!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看