Commit graph

189 commits

Author SHA1 Message Date
71dd54b180
Fix postgres Handler error handling (#47) 2023-04-26 10:54:02 -06:00
1c92db565b
Update slog (#46) 2023-04-19 17:05:43 -06:00
934594aa00
Update README 2023-04-15 11:30:31 -06:00
aaed37eeb5
Add redis support (#44) 2023-04-14 19:11:22 -06:00
219ea84d76
Move config.WithConnectionString -> postgres.WithConnectionString (#43) 2023-04-01 18:03:55 -07:00
ba0032eaba
Remove dangling import 2023-04-01 17:57:35 -07:00
81845a2303
Move handlers.FromJobContext() -> jobs.FromContext() (#41) 2023-04-01 17:54:05 -07:00
d8c637852c
Remove add multiple handlers per queue (#42) 2023-04-01 17:36:07 -07:00
d47845d573
Make JobWithContext private 2023-03-21 09:54:08 -07:00
900893d14c
Mem: Add multiple handlers per queue 2023-03-18 16:13:23 -07:00
4639e53980
Update docs regarding lost connections while updating jobs (#39) 2023-03-18 12:22:27 -07:00
eb430e9444
Acquire a new connection for every queue listener (#38) 2023-03-18 09:52:48 -07:00
aabb567636
remove unused errors 2023-03-17 08:58:57 -07:00
07a336a397
Make handler context vars backend agnostic (#37) 2023-03-17 08:53:16 -07:00
784ea57578
increase test coverage over memory backend 2023-03-09 11:03:37 -07:00
1a9db7c00e
Disable go mod tidy goreleaser hook 2023-03-07 10:52:50 -07:00
b88400ad8d
Upgrade goreleaser github action version 2023-03-07 09:46:13 -07:00
93fff3bd8a
Bump goreleaser go version 1.19->1.20 2023-03-07 09:30:26 -07:00
d3fe7609c9
Move goreleaser to 'main' branch 2023-03-07 09:27:55 -07:00
621b105213
Refactor ReplaceNonAlphanum() to use regex.ReplaceAllString() 2023-03-07 09:24:46 -07:00
b2e3dec054
Add goreleaser 2023-03-01 11:28:12 -07:00
45adbf31c5
Simpllify getting started example in README.md 2023-03-01 11:08:05 -07:00
a9f2f6b4f4
Merge pull request #30 from acaloiaro/move-backends-to-separate-package
Move backends into separate package
2023-03-01 10:36:50 -07:00
5b6620927e
Move backends to separate packages 2023-03-01 10:34:27 -07:00
1911da5008
Merge pull request #24 from acaloiaro/add-with-logger-config
Add user-supplied logger support
2023-02-24 11:37:45 -07:00
dbeb85518f
Add logger configuration options
- Add ConfigOption for logger configuration
- Extend Neoq interface with SetLogger()
- Remove error return value from Shutdown()
- Remove WithConfig from Neoq interface
2023-02-24 11:35:35 -07:00
2e5c4609c5
Disable ireturn and testpackage linters 2023-02-24 09:12:35 -07:00
cc6a3d9a14
Enable goerr113 linter 2023-02-24 08:55:36 -07:00
145c9df2fd
Fix memory backend test and WithOptions() 2023-02-24 08:49:56 -07:00
67e83aa677
Fix golangci-lint workflow 2023-02-24 08:11:09 -07:00
e5071b4817
Revert "temporarily disable linting"
This reverts commit f43f3c6052.
2023-02-24 08:11:08 -07:00
Juan C. Müller
b0fc2943af
Merge pull request #9 from acaloiaro/more-suggestions
More suggestions
2023-02-23 21:42:38 -05:00
Juan C. Müller
56a64d7620
Provide WithOptions instead 2023-02-23 21:38:22 -05:00
acd50c4d1f
Update WithLogger TODO 2023-02-23 13:02:20 -07:00
6c33a95e56
combined todo to issue workflows 2023-02-23 13:00:37 -07:00
ad58949cd0
Merge pull request #21 from acaloiaro/make-future-job-check-interval-configurable
Make future job check interval configurable
2023-02-23 12:55:54 -07:00
b9ca892b38
Only run the manual todo to issue workflow when run manually 2023-02-23 12:52:44 -07:00
895ea02a26
Make future job check interval configurable
- Make future job check interval configurable in MemBackend (fixes #11)
- Make interval of time for which jobs are dedicated a goroutine use a default in MemBackend (fixes #12)
- Make future job check interval configurable in PgBackend (fixes #18)
- Make interval of time for which jobs are dedicated a goroutine use a default in PgBackend (fixes #19)
2023-02-23 12:46:12 -07:00
f8238f88c0
Fix todo to issue config 2023-02-23 11:56:17 -07:00
a024be6a39
Updated code TODOs 2023-02-23 11:53:24 -07:00
963a4b7720
Add todo_to_issue workflows 2023-02-23 11:41:41 -07:00
7545d110e1
Update DATABASE_URL -> TEST_DATABASE_URL 2023-02-23 10:58:14 -07:00
f43f3c6052
temporarily disable linting 2023-02-23 10:49:22 -07:00
077fe8c855
Don't use error-wrapping directive in log.Fatalf calls 2023-02-23 10:32:39 -07:00
af8f9cf7ed
Merge pull request #10 from acaloiaro/implement-shutdown-functionality
Add Shutdown() functionality
2023-02-23 10:29:54 -07:00
Adriano Caloiaro
c232bc896f
Implement Shutdown() functionality
- Store context cancelFuncs to be called during Shutdown()
- This ensures the resources are released when neoq is shut down.

Co-authored-by: Juan C. Müller <jcmuller@users.noreply.github.com>
2023-02-23 10:23:22 -07:00
Adriano Caloiaro
5d7ca98d13
Updated .gitignore 2023-02-23 09:45:42 -07:00
Adriano Caloiaro
68a3c56963
Merge pull request #5 from acaloiaro/add-in-memory-backend
Add in-memory backend
2023-02-23 09:44:20 -07:00
Adriano Caloiaro
93a646ae27
Add in-memory backend
Co-authored-by: Juan C. Müller <jcmuller@users.noreply.github.com>
2023-02-23 09:35:14 -07:00
Adriano Caloiaro
bde273b995
Merge pull request #3 from jcmuller/add-test-action
Add test action
2023-02-20 07:41:09 -08:00