Coder Social home page Coder Social logo

Worker info not updated about fresque HOT 4 CLOSED

wa0x6e avatar wa0x6e commented on June 3, 2024
Worker info not updated

from fresque.

Comments (4)

teewhey avatar teewhey commented on June 3, 2024

Found a workaround.

Just do a "fresque load", it will spawn workers and populate the list with the correct info.

from fresque.

wa0x6e avatar wa0x6e commented on June 3, 2024

1 - Did you try to pause then resume workers ?
2 - Logs is saying that the workers were exiting, thus stopping. That's why you don't see the workers' process
3 - Refer to 1, did you try to resume workers ?
4 - If you still see the workers in stats, then you should be able to stop them. Sometimes, it can takes time (some seconds). If they're still here, it means that the workers were not properly stopped.

From the symptoms, it seems the workers were not properly stopped.
What did you try to do when the logs says :

[2013-10-05T16:27:31+00:00] CONT received; resuming job processing
[2013-10-05T16:27:31+00:00] Exiting...

Was it a normal job execution, or did you try to stop/resume/pause workers ?

You workaround is working because load will start workers, and before starting new workers, resque is doing some cleaning to remove not properly stopped workers. Doing a start or reset should give the same results.

from fresque.

teewhey avatar teewhey commented on June 3, 2024

Just to clarify, the number 1,2,3,4 in my post above simply refers to chronological order. Not different scenarios.. ; )

  1. I did. From status I see it was paused and resumed. But even before I do that, I ran "ps -ef" and it returns no worker process. Probably was rebooted by forced power off.
  2. Correct. But when I run "fresque stats", resque stats returns me a list of workers, when it should have returned nothing since there is no worker process.
  3. Yeah I did
  4. I didn't do anything since I started the worker. I just left it running in my test server. Based on the timestamp (UTC), it happens on a Sunday, no one is in the office to work plus I'm the only one using this at the moment.
    I did try to do "reset", "start", "stop" before I found the workaround. It all returns me the list of my previous workers while there is no shell process for the workers.

from fresque.

teewhey avatar teewhey commented on June 3, 2024

The server was rebooted. That could have caused the worker process to be gone and yet Redis is still registered with the old worker list....
Seems like we've found our culprit. Thank you for your help.

from fresque.

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.