V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jakeyfly
V2EX  ›  问与答

APScheduler 这个库有大佬了解吗,要执行的任务只能是函数,而不能是实例方法?

  •  
  •   jakeyfly · Jun 1, 2018 · 1505 views
    This topic created in 2887 days ago, the information mentioned may be changed or developed.

    我添加实例方法任务报错,提示缺少关键参数'self'

    晕了。。。。

    2 replies    2018-06-01 20:54:05 +08:00
    billlee
        1
    billlee  
       Jun 1, 2018
    不应该啊,你写得有问题吧?
    jakeyfly
        2
    jakeyfly  
    OP
       Jun 1, 2018
    @billlee 我在网上搜有一个老外的贴子跟我这个问题一样,我不持久化保存任务就没事。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1853 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 16:18 · PVG 00:18 · LAX 09:18 · JFK 12:18
    ♥ Do have faith in what you're doing.