Code Monkey home page Code Monkey logo

Comments (5)

miguelgrinberg avatar miguelgrinberg commented on May 29, 2024

Are you running a RQ worker process? This is a separate process that picks up the tasks that are put in the queue and executes them. Without the worker the task will never progress.

from microblog.

CoreyCCarter avatar CoreyCCarter commented on May 29, 2024

I forgot I needed to be running the RQ worker process. Thank You. How do I go about setting the Flask-Mail variables in the context of the RQ worker, though? I thought that was all set in my .env file that is loaded from config.py. I am getting an error that states smtplib.SMTPServerDisconnected: Connection unexpectedly closed. I have exported each of the mail settings such as MAIL_SERVER, MAIL_USERNAME, MAIL_PASSWORD, MAIL_PORT and MAIL_USE_TLS.

from microblog.

miguelgrinberg avatar miguelgrinberg commented on May 29, 2024

The configuration is done in the .env file, as you describe. Have you tested sending emails before? The most likely cause of the error is that your configuration is wrong.

from microblog.

CoreyCCarter avatar CoreyCCarter commented on May 29, 2024

The reset password emails work perfectly, I just cannot get the export posts email to work and everything points back to the smtp error.

from microblog.

CoreyCCarter avatar CoreyCCarter commented on May 29, 2024

@miguelgrinberg Thank you for your help with this. I restarted the application and started the worker process and everything is working. I did, however, notice that when a user has no posts and asks for them to be exported, it will send the email with an empty json file(empty as in it has no post data but it does have the structure for it) but the progress bar and job itself gets stuck because of the 100 * i // total_posts calculation will result in division by zero. It works perfectly where there are actual posts, though.

from microblog.

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.