Giter Site home page Giter Site logo

Comments (5)

fenglinjueding avatar fenglinjueding commented on June 1, 2024

老哥有找到解决办法吗,目前任务与handle必须要一一对应?

from xxl-job.

linshaomin avatar linshaomin commented on June 1, 2024

老哥有找到解决办法吗,目前任务与handle必须要一一对应?

好像只能改源码,多个任务对应一个handle功能可以正常运行,正常一个任务复用一个线程,这种情况会存在任务线程资源浪费,旧线程被打断的情况。

from xxl-job.

fenglinjueding avatar fenglinjueding commented on June 1, 2024

老哥有找到解决办法吗,目前任务与handle必须要一一对应?

好像只能改源码,多个任务对应一个handle功能可以正常运行,正常一个任务复用一个线程,这种情况会存在任务线程资源浪费,旧线程被打断的情况。

我测了下3个task 注册一个handler,执行频率1s一次,执行代码每次Sleep 2s,三个任务都正常执行,日志显示每个任务都是间隔2s执行,没观察到旧线程被打断的情况,老哥能描述下怎么复现问题吗

from xxl-job.

fenglinjueding avatar fenglinjueding commented on June 1, 2024

老哥有找到解决办法吗,目前任务与handle必须要一一对应?

好像只能改源码,多个任务对应一个handle功能可以正常运行,正常一个任务复用一个线程,这种情况会存在任务线程资源浪费,旧线程被打断的情况。

老哥,方面加下联系方式吗 我微信 wxid_5138vr6gtzb522

from xxl-job.

yuanfengdaizhewo avatar yuanfengdaizhewo commented on June 1, 2024

老哥有找到解决办法吗,目前任务与handle必须要一一对应?

好像只能改源码,多个任务对应一个handle功能可以正常运行,正常一个任务复用一个线程,这种情况会存在任务线程资源浪费,旧线程被打断的情况。

你说的不对,一个的jobId 对应一个jobThread 只有你设置 阻塞处理策略 为 覆盖之前调度 才会在还存在旧线程还在执行任务的情况下 创建新的jobThread 并将旧线程设置为打断。

from xxl-job.

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.