Giter Site home page Giter Site logo

Comments (3)

dwreeves avatar dwreeves commented on June 12, 2024

Ah it gets worse. celery beat --help:

Usage: celery beat [OPTIONS]

  Start the beat periodic task scheduler.

Beat Options:
  --detach                        Detach and run in the background as a
                                  daemon.
  -s, --schedule TEXT             Path to the schedule database.  Defaults to
                                  `celerybeat-schedule`.The extension '.db'
                                  may be appended to the filename.
  -S, --scheduler TEXT            Scheduler class to use.
  --max-interval INTEGER          Max seconds to sleep between schedule
                                  iterations.
  -l, --loglevel [DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL]
                                  Logging level.

Daemonization Options:
  -f, --logfile TEXT  Log destination; defaults to stderr
  --pidfile TEXT
  --uid TEXT
  --gid TEXT
  --umask TEXT
  --executable TEXT

Options:
  --help  Show this message and exit.

rich-click celery beat --help:

                                                                                                    
 Usage: celery beat [OPTIONS]                                                                       
                                                                                                    
 Start the beat periodic task scheduler.                                                            
                                                                                                    
Beat Options:

  --detach
                        
Detach and run in the background as a daemon.

  -s, --schedule TEXT
             
Path to the schedule database.  Defaults to `celerybeat-

                                  schedule`.The extension '.db' may be appended to the filename.

  -S, --scheduler TEXT
            
Scheduler class to use.

  --max-interval INTEGER
          
Max seconds to sleep between schedule iterations.

  -l, --loglevel [DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL]


                                  
Logging level.

Daemonization Options:

  -f, --logfile TEXT
  
Log destination; defaults to stderr

  --pidfile TEXT


  --uid TEXT


  --gid TEXT


  --umask TEXT


  --executable TEXT


Options:

  --help
  
Show this message and exit.

Note this is specific to 1.8.0dev. 1.7.3 does not have this issue. I have a feeling why that is the case, but I will have to look deeper.

from rich-click.

dwreeves avatar dwreeves commented on June 12, 2024

Figured out what's going on pretty quickly with the subcommand and I'll have a fix for that, but the main command I will have to dig into.

from rich-click.

dwreeves avatar dwreeves commented on June 12, 2024

Ahhh, figured it out. TLDR, this is a bug in 1.8.0dev, and it arises due to the order of how Click stuff is loaded now with the lazy-loading.

This is entirely fixable, and in that sense it's not a big deal.

What is a big deal is this is a big pain to safeguard against in tests, since the tests all share the same sys.modules and the same click module, normally invoked test cases of click Groups will contain false passes. I need to think about how to guard against this!

from rich-click.

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.