github.com/albrow/jobs
v0.4.2
albrow/jobs
What this package is like to depend on
Last release 9 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 2.0 years
Most releases are documented
notes for 10 of 12 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
15 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
15 releases · Feb 2015 to Dec 2017Releases
latest 15-
v0.4.3-0.20171214010215-2580c613deb414 Dec 2017 pre-releaseNothing published for this version
-
v0.4.231 Dec 2015Release notes
Open source →This release features no real code changes. All I did was update one of the tests so that it would pass when run on CircleCI. To be more specific, I had to update
TestRecurringJobso that it was less fickle. Previously, it would fail whenever you passed the-raceflag to go test due to subtle timing differences.CircleCI is now fully set up and the tests pass 🎉
Full Changelog
- Fix
TestRecurringJobso it is less fickle and will pass with the-raceflag.
- Fix
-
v0.4.131 Dec 2015Release notes
Open source →This release has no real code changes. It simply consists of some changes to the README.
Note that CircleCI is currently failing. I'm working on a quick fix now and will release version 0.4.2 shortly. The tests pass locally. The issue appears to have to do with floating point comparisons on a different OS than I usually work on.
Full Changelog
- Fix typo in example code in README. (Thanks @cdrage!)
- Add badges for version and CircleCI tests
- Fix tests to use tcp instead of a socket for compatibility with CircleCI.
-
v0.4.025 Aug 2015Release notes
Open source →This release incorporates PR #30. Thanks @utrack!
I wanted to prioritize getting #30 into master, so I have not yet implemented everything that was planned for Milestone 0.4.0. As a result, some issues have been pushed back to Milestone 0.5.0.
Full Changelog
- Implement
Pool.SetAfterFuncwhich allows you to specify a function that should be run after each job is executed, regardless of whether it was successful.
- Implement
-
v0.3.212 Jul 2015Release notes
Open source →This releases fixes #26 and makes it safe to destroy a job while it is being executed. It also adds additional safety around operations, checking if a job was destroyed and doing nothing if it was. This helps keep the database in a consistent state no matter when a job was destroyed.
Full Changelog
- Fix #26
- Always check if a job was destroyed before updating its state.
-
v0.3.120 May 2015Release notes
Open source →This release incorporates PR #22.
FindByIdnow returns anErrorJobNotFoundif a job cannot be found with the given id. Previously no error would be returned. Big thanks to @epelc for pointing this out and submitting the PR! This release is 100% backwards compatible.Full Changelog
- FindById now may return a
ErrorJobNotFound.
- FindById now may return a
-
v0.3.015 May 2015Release notes
Open source →This release adds a few reliability enhancements and bug fixes. There is one small breaking change, which is that
NewPoolnow can return an error.Jobs is now safe for use in binary executables. Previously, jobs would attempt to read lua scripts from the scripts directory during initialization. However, now there is a generation step that parses the files and generates go code which just contains strings. See #13 for more information.
Recovery from failed or disconnected pools is now a little more efficient. Each pool gets a unique id based on the MAC address of the machine its running on instead of a randomly generated id. What this means is that if a machine running a worker pool fails and restarts, it will automatically clean up after itself by re-queuing any jobs it was working on when it crashed. See #5 for more information.
I've made some updates to the README. In particular, I felt in important to note that jobs follows semantic versioning but offers no promises of backwards compatibility until version 1.0. Please note that we are likely going to break backwards compatibility in a major way when #14 is implemented (likely in version 0.4.0 or 0.5.0). I also added a CONTRIBUTING.md file to welcome contributors by making the instructions more obvious.
Full Changelog
- Jobs no longer reads from files in the scripts directory and instead loads them in a generated file as strings.
- Each pool now gets a unique hardware id based on its mac address.
- Pools more efficiently clean up after themselves in the event of a restart.
NewPoolnow can return an error.- Some previously unexpected methods are now exported:
-
v0.2.205 May 2015Release notes
Open source →This release incorporates PR #12 from @wuyongzhi and adds support for multiple paths in your GOPATH. Previously, if you had multiple paths in your GOPATH, jobs would fail to load scripts because it only expected one path.
Full Changelog
- Add support for multiple paths in GOPATH
-
v0.2.2-0.20150819205644-7ea9567cea1619 Aug 2015 pre-releaseNothing published for this version
-
v0.2.121 Apr 2015Release notes
Open source →This release adds support for connecting to password protected Redis databases by setting Config.Password. It also adds some new sections to the README and elaborates on portions that were previously ambiguous.
Full Changelog
- Add support for password protected Redis databases
- Improve README
-
v0.2.015 Apr 2015Release notes
Open source →This release introduces a new mechanism for reporting job failure. Every HandlerFunc must now return an error (which may be nil). If the error is non-nil, it will be picked up by the worker in the same way that panics are. That is, the error will be logged in the database, and the job will either be retried or marked as permanently failed. The primary reason for this change is that returning errors is more idiomatic in go.
Full Changelog
- Job HandlerFunc's must now return an error.
-
v0.1.125 Feb 2015Release notes
Open source →This release fixes a bug in the Job.Reschedule method, where the job was not being updated in the time index if its time changed. It is backwards compatible with version 0.1.0.
Full Changelog
- Update the job's score in the time index correctly in the Job.Reschedule method
-
v0.1.025 Feb 2015Nothing published for this version
-
v0.0.121 Feb 2015Nothing published for this version
-
v0.0.0-20171214010215-2580c613deb414 Dec 2017 pre-releaseNothing published for this version