Coder Social home page Coder Social logo

Comments (5)

ljjy1 avatar ljjy1 commented on August 27, 2024

@JankinHou 试试我写的这个springboot中间件 支持多账号切换 提高了并发 支持代理 https://github.com/ljjy1/discord-mj-java

from midjourney-api.

sisterdong avatar sisterdong commented on August 27, 2024

我是这样解决的,任务完成后清一下队列

util/_queue.py

def _exec(self):
        key, task = self._wait_queue.popleft().popitem()
        self._concur_queue.append(key)

        logger.debug(f"Task[{key}] start execution: {task}")
        loop = asyncio.get_running_loop()
        tsk = loop.create_task(task())
        tsk.add_done_callback(
            lambda t: self._concur_queue.remove(key)
        ) 

from midjourney-api.

31702160136 avatar 31702160136 commented on August 27, 2024

触发mj的敏感词后,队列会一直占用不会释放

from midjourney-api.

JankinHou avatar JankinHou commented on August 27, 2024

触发mj的敏感词后,队列会一直占用不会释放

应该不是敏感词。我还在测试阶段,一天偶尔测几次,并没有什么敏感词啊

from midjourney-api.

31702160136 avatar 31702160136 commented on August 27, 2024

from midjourney-api.

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.