Code Monkey home page Code Monkey logo

Comments (2)

ResolveWang avatar ResolveWang commented on May 21, 2024

你是想使用celery构建吗?如果是的话,我大概可以根据不同任务粒度提供两种思路给你
1.你直接把有调用依赖关系的任务写成一个任务丢给celery执行
2.使用celery的链式调用,这种方式可以分解为两个小任务,且有依赖关系。当然,也可以进行参数传递,不过需要要求参数能够被序列化,具体你可以看看官网文档关于链式调用的部分

from weibospider.

sunnypandas avatar sunnypandas commented on May 21, 2024

@ResolveWang 谢谢您。目前考虑使用celery。因为先前调研的时候我也咨询过scrapy-redis的作者,scrapy-redis项目单纯的依靠redis很难解决该问题,我再按照您的建议学习下celery,感激您的建议,谢谢。

from weibospider.

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.