forked from freckle/faktory_worker_haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
161 lines (147 loc) · 3.88 KB
/
package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
name: faktory
version: 1.1.3.0
category: Network
author: Freckle Engineering
maintainer: [email protected]
copyright: 2018 Freckle Education
license: MIT
github: freckle/faktory_worker_haskell
synopsis: Faktory Worker for Haskell
description: |
Haskell client and worker process for the Faktory background job server.
== Architecture overview
@
| +--------------------+
| | |
| | Faktory |
| | Server |
| +---------->>>>| +>>>>--------+
| | | | |
| | | | |
| | +--------------------+ |
| +-----------------+ +-------------------+
| | | | |
| | Client | | Worker |
| | pushes | | pulls |
| | jobs | | jobs |
| | | | |
| | | | |
| +-----------------+ +-------------------+
@
* `Client` - an API any process can use to push jobs to the Faktory server.
* `Worker` - a process that pulls jobs from Faktory and executes them.
* `Server` - the Faktory daemon which stores background jobs in queues to be processed by Workers.
This package contains only the `Client` and `Worker`.
extra-doc-files:
- CHANGELOG.md
- README.lhs
ghc-options:
- -Weverything
- -Wno-missing-exported-signatures
- -Wno-missed-specialisations
- -Wno-all-missed-specialisations
- -Wno-unsafe
- -Wno-safe
- -Wno-missing-local-signatures
- -Wno-monomorphism-restriction
- -Wno-missing-import-lists
when:
- condition: impl(ghc >= 8.10)
ghc-options:
- -Wno-missing-safe-haskell-mode
- -Wno-prepositive-qualified-module
- condition: impl(ghc >= 9.2)
ghc-options:
- -Wno-missing-kind-signatures
- condition: impl(ghc >= 9.8)
ghc-options:
- -Wno-missing-role-annotations
dependencies:
- base >= 4 && < 5
default-extensions:
- BangPatterns
- DeriveAnyClass
- DeriveFoldable
- DeriveFunctor
- DeriveGeneric
- DeriveLift
- DeriveTraversable
- DerivingStrategies
- FlexibleContexts
- FlexibleInstances
- GADTs
- GeneralizedNewtypeDeriving
- LambdaCase
- MultiParamTypeClasses
- NamedFieldPuns
- NoImplicitPrelude
- NoMonomorphismRestriction
- OverloadedStrings
- RankNTypes
- RecordWildCards
- ScopedTypeVariables
- StandaloneDeriving
- TypeApplications
- TypeFamilies
library:
source-dirs: library
dependencies:
- aeson
- aeson-casing
- bytestring
- crypton-connection
- cryptonite
- errors
- hostname
- megaparsec
- memory
- microlens
- mtl
- network
- random
- resource-pool
- safe-exceptions
- semigroups >= 0.19.1
- scanner
- text
- time
- unix
- unliftio
- unordered-containers
executables:
faktory-example-producer:
main: Main.hs
source-dirs: examples/producer
dependencies:
- aeson
- faktory
- safe-exceptions
faktory-example-consumer:
main: Main.hs
source-dirs: examples/consumer
dependencies:
- aeson
- faktory
- safe-exceptions
tests:
hspec:
main: Spec.hs
source-dirs: tests
ghc-options: -rtsopts
dependencies:
- faktory
- aeson
- aeson-qq
- async
- hspec
- mtl
- time
readme:
main: README.lhs
source-dirs: .
ghc-options: -pgmL markdown-unlit
dependencies:
- aeson
- faktory
- markdown-unlit