Git Product home page Git Product logo

Comments (6)

bjartek avatar bjartek commented on August 27, 2024

Also when I ran the default example the finisher panics but it just makes the job run endlessly, should the hookFunc return an error?

from gue.

vgarvardt avatar vgarvardt commented on August 27, 2024

Thx for reporting, let me try to reproduce this with the test and if I'll be able - I'll fix this issue.

should the hookFunc return an error?

it should not by design, pls check hook type description - https://pkg.go.dev/github.com/vgarvardt/gue/v4#HookFunc

from gue.

vgarvardt avatar vgarvardt commented on August 27, 2024

Tried to reproduce an issue with a test and I can not - I see a record in the finished jobs log table and panic is not interrupting the job flow.

Pls check #90, maybe you have an idea how to reproduce the problem.

from gue.

bjartek avatar bjartek commented on August 27, 2024

One issue is that in the example code or in the ddl there is no sql for the finished logs table.

from gue.

vgarvardt avatar vgarvardt commented on August 27, 2024

Ah, this is just an example of hook usage, not the production-ready code.

from gue.

bjartek avatar bjartek commented on August 27, 2024

Ok, well if you add the finished job table to the ddl it will work better imho.

from gue.

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.