forked from freckle/faktory_worker_haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faktory.cabal
329 lines (321 loc) · 9.72 KB
/
faktory.cabal
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
cabal-version: 1.18
-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack
name: faktory
version: 1.1.3.0
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`.
category: Network
homepage: https://github.com/freckle/faktory_worker_haskell#readme
bug-reports: https://github.com/freckle/faktory_worker_haskell/issues
author: Freckle Engineering
maintainer: [email protected]
copyright: 2018 Freckle Education
license: MIT
license-file: LICENSE
build-type: Simple
extra-doc-files:
CHANGELOG.md
README.lhs
source-repository head
type: git
location: https://github.com/freckle/faktory_worker_haskell
library
exposed-modules:
Data.Pool.Compat
Faktory.Client
Faktory.Connection
Faktory.Ent.Batch
Faktory.Ent.Batch.Status
Faktory.Ent.Tracking
Faktory.Job
Faktory.Job.Custom
Faktory.JobFailure
Faktory.JobOptions
Faktory.JobState
Faktory.Pool
Faktory.Prelude
Faktory.Producer
Faktory.Protocol
Faktory.Settings
Faktory.Settings.Queue
Faktory.Worker
Network.Connection.Compat
other-modules:
Paths_faktory
hs-source-dirs:
library
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
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
build-depends:
aeson
, aeson-casing
, base ==4.*
, bytestring
, crypton-connection
, cryptonite
, errors
, hostname
, megaparsec
, memory
, microlens
, mtl
, network
, random
, resource-pool
, safe-exceptions
, scanner
, semigroups >=0.19.1
, text
, time
, unix
, unliftio
, unordered-containers
default-language: Haskell2010
if impl(ghc >= 8.10)
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
executable faktory-example-consumer
main-is: Main.hs
other-modules:
Paths_faktory
hs-source-dirs:
examples/consumer
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
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
build-depends:
aeson
, base ==4.*
, faktory
, safe-exceptions
default-language: Haskell2010
if impl(ghc >= 8.10)
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
executable faktory-example-producer
main-is: Main.hs
other-modules:
Paths_faktory
hs-source-dirs:
examples/producer
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
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
build-depends:
aeson
, base ==4.*
, faktory
, safe-exceptions
default-language: Haskell2010
if impl(ghc >= 8.10)
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
test-suite hspec
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Faktory.ConnectionSpec
Faktory.Ent.BatchSpec
Faktory.Ent.TrackingSpec
Faktory.JobOptionsSpec
Faktory.JobSpec
Faktory.Test
FaktorySpec
Paths_faktory
hs-source-dirs:
tests
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
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 -rtsopts
build-depends:
aeson
, aeson-qq
, async
, base ==4.*
, faktory
, hspec
, mtl
, time
default-language: Haskell2010
if impl(ghc >= 8.10)
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
test-suite readme
type: exitcode-stdio-1.0
main-is: README.lhs
other-modules:
Paths_faktory
hs-source-dirs:
./
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
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 -pgmL markdown-unlit
build-depends:
aeson
, base ==4.*
, faktory
, markdown-unlit
default-language: Haskell2010
if impl(ghc >= 8.10)
ghc-options: -Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations