-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge benmanns/goworker#85 #3
Commits on Jul 26, 2022
-
CHANGELOG: Stareted the CHANGELOG
Mentioning the 1.4 that we'll create is based on master, as the last release is 1.3 and it's old
Configuration menu - View commit details
-
Copy full SHA for 7ad8a38 - Browse repository at this point
Copy the full SHA 7ad8a38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 915dfae - Browse repository at this point
Copy the full SHA 915dfaeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d43e80 - Browse repository at this point
Copy the full SHA 4d43e80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2346ce1 - Browse repository at this point
Copy the full SHA 2346ce1View commit details -
worker: Add logic for heatbeat and prune
This logic is ported from the Ruby. It allows each worker to heartbeat Redis so if everything is killed instead of keeping them on the DB it'll try to prun them after a while (5'). The only logic ont ported from Ruby is the one about checking the PID.
Configuration menu - View commit details
-
Copy full SHA for 106314a - Browse repository at this point
Copy the full SHA 106314aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e9cce2 - Browse repository at this point
Copy the full SHA 1e9cce2View commit details -
CHANGELOG: Quick release to change the module definition
Otherwise it cannot be imported from the outseide
Configuration menu - View commit details
-
Copy full SHA for f85b442 - Browse repository at this point
Copy the full SHA f85b442View commit details -
worker: Fix issue with go-redis syntax
When redis returns nil they return an error with an specific logic to check it with
Configuration menu - View commit details
-
Copy full SHA for e149b39 - Browse repository at this point
Copy the full SHA e149b39View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5808fc - Browse repository at this point
Copy the full SHA f5808fcView commit details -
goworker: Added a function 'Closed()' that will return when the proce…
…ss fully closed It's useful when you want to exactly know when the worker has fully stopped and cleaned. This can be useful in cases in which you have to block something until the worker is closed for example if the worker is in goroutines and the main process is killed you could end up with workers not beeing cleaned so using this function would avoid this.
Configuration menu - View commit details
-
Copy full SHA for 41602e2 - Browse repository at this point
Copy the full SHA 41602e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2d25d6 - Browse repository at this point
Copy the full SHA e2d25d6View commit details -
goworker: Added 'MaxAgeRetries' option to the Goworker
This option is useful to automatically remove retried failed jobs from the 'failed' queue that exceede that duration, this check will be done every 1m. Also changed the 'failed.FailedAt' and added 'failed.RetriedAt' and switched them to type string. The main reason is that the Ruby lib is setting those values in an specific format and Ruby can read multiple formats into one, but GO cannot and we need to actually use the same ones or the unmarshaler does not work so I decided to switch them to 'string' and add helpers to set/get the values that will directly convert them. All the logic has more or less been ported from the Ruby version, on how to remove failed jobs and how the data is stored, as the 'MaxAgeRetries' is something unique from this GO version
Configuration menu - View commit details
-
Copy full SHA for fbbb9c4 - Browse repository at this point
Copy the full SHA fbbb9c4View commit details -
worker: New option ForcePrune to clean workers not on the heartbeat
This will remove workers thare could be stuck but it's not backwards compatible if enabled
Configuration menu - View commit details
-
Copy full SHA for 48ca555 - Browse repository at this point
Copy the full SHA 48ca555View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a95af9 - Browse repository at this point
Copy the full SHA 5a95af9View commit details -
goworker: Fixed null pointer exception when running prune
For some reason with previous tests this was not found but now it's fixed
Configuration menu - View commit details
-
Copy full SHA for afc4ad7 - Browse repository at this point
Copy the full SHA afc4ad7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c24f222 - Browse repository at this point
Copy the full SHA c24f222View commit details