Giter Club home page Giter Club logo

Comments (7)

mperham avatar mperham commented on July 19, 2024

Somehow you got a job into Faktory which has no retry attribute at all. Both PUSH and PUSHB add retry if it's not there so I have no idea how this could happen.

faktory/server/commands.go

Lines 154 to 157 in 93598e9

if job.Retry == nil {
// If retry is not set, we want to use the default policy
job.Retry = &client.RetryPolicyDefault
}

from faktory.

jeremyowensboggs avatar jeremyowensboggs commented on July 19, 2024

Is there a way we can clear the job out?

from faktory.

mperham avatar mperham commented on July 19, 2024

Yes. If you start Redis by pointing it to the datafile, you can fire up redis-cli. One of the entries in the working zset is the bad job. You'll want to ZREM the entry which does not have a retry attribute.

redis-server faktory-redis.conf --path /path/to/faktory/db

Here's the faktory-redis.conf:

redisconf = `

Make sure you remove all entries without retry.

from faktory.

jeremyowensboggs avatar jeremyowensboggs commented on July 19, 2024

Not seeing any with no retry, but we have a few with a retry of -1. Would a retry of -1 cause this?

from faktory.

jeremyowensboggs avatar jeremyowensboggs commented on July 19, 2024

nm, there is one with null "retry":null

from faktory.

jeremyowensboggs avatar jeremyowensboggs commented on July 19, 2024

The job with the null retry is created is the result of on on_success batch. However, it runs every 20 minutes since Monday of last week, and has succeeded quite a few times in the past week without this problem occurring.

from faktory.

mperham avatar mperham commented on July 19, 2024

Yes, that's a bug that has been fixed but not released. I will release 1.6.2 this week. In the meantime, try to explicitly set "retry" if possible in your client code where you define the callback.

from faktory.

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.