Giter Site home page Giter Site logo

Comments (3)

my8100 avatar my8100 commented on July 3, 2024

Does the config below work for you?

  • day_of_week: Monday-Friday
  • hour: 8,17
  • minute: 0
  • second: 0

from scrapydweb.

EchoShoot avatar EchoShoot commented on July 3, 2024

嘿朋友! 你的方案能用, 看来是我当时理解存在偏差. 不过我相信我不是唯一误解的人, 我有一个不错的建议:
参考GTD软件Things3的重复任务来设计:
Hey friends! Your plan can be used, it seems that I understood the deviation at the time. But I believe that I am not the only misunderstood person, I have a good suggestion: Refer to the repeated tasks of the GTD software Things3 to design:


重复条件: \ Repeat conditions

  • 完成后 \ After completion
    • n (分钟/小时/天/周/月) 后执行 \ n (minutes/hours/days/weeks/months)
    • 结束条件 (从不/截止日期/n次后) \ Execution* End conditions (never/dead date/n times)
  • 定期 \ Regular
    • 每(天/周/月) (12:00, 13:30) 执行 \ per (day/week/month) (12:00 , 13:30)
    • 结束条件 (从不/截止日期/n次后) \ Execution* End condition (never/dead date/n times)

我相信这样设计能够应对更多的场景, 能够更加便于理解与使用.
I believe that this design can handle more scenarios and can be more easily understood and used.


your guy: BiarFordlander

from scrapydweb.

my8100 avatar my8100 commented on July 3, 2024

Thanks for your suggestion.

  1. The Timer Tasks feature is implemented based on APScheduler.
  2. Whether a scraping job is finished or not is unknown to APScheduler, see #30.
  3. The max_runs option is dropped in APScheduler v3.0.0, so currently you cannot specify how many times a task should be executed.
  4. Setting */n means firing every n values, starting from the minimum, see the docs of APScheduler.
  5. Both start_date and end_date are available and optional when adding a task.

Also, check out the links in the HELP section of the Timer Tasks page to get more info.

from scrapydweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.