Comments (6)
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.
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.
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.
One issue is that in the example code or in the ddl there is no sql for the finished logs table.
from gue.
Ah, this is just an example of hook usage, not the production-ready code.
from gue.
Ok, well if you add the finished job table to the ddl it will work better imho.
from gue.
Related Issues (20)
- Support other binary encoding for storing the Args HOT 3
- Exampe outbox is not workering HOT 8
- Question: Semantics on cancel of workerpool HOT 7
- Feature Request: Support for dependent jobs HOT 1
- Manually rescheduling a job HOT 10
- Panic error messages only logged in database HOT 2
- Enque new jobs from within a job HOT 2
- Adding a subQueue or workIdentifier field HOT 2
- Way to distinguish between a 'successful' versus 'failed' job HOT 2
- Why not use sql.DB instead of adapter.Tx HOT 3
- Add maximum retry HOT 2
- v5.1.0 error: cannot use unit.Dimensionless HOT 2
- Can't use more than 5 workers HOT 2
- Postgres Listen/Notify instead of polling HOT 3
- Undesirable trace spans from poll function HOT 6
- `HooksJobDone` are not executed within the transaction in case of a `WorkFunc` failure. HOT 2
- stacktrace truncate HOT 2
- Add context to worker HOT 1
- More production ready example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gue.