Commit Graph

14 Commits

Author SHA1 Message Date
Max Radermacher
a241f40621
Fix a few build warnings 2024-04-17 19:11:13 -05:00
Max Radermacher
bc74ec3953
Tweak or remove redundant/noisy info lines 2024-04-16 19:37:25 -05:00
Max Radermacher
b095509975
Drop obsolete removeMessageAfterSending support 2024-01-04 14:37:54 -06:00
Max Radermacher
89ddc81b0c
Add initial JobQueueRunner implementation 2023-12-12 13:34:46 -06:00
Max Radermacher
6d16de2522
Change how job queue labels are specified 2023-12-11 13:39:48 -06:00
Max Radermacher
208e234692
Remove a bunch of debug()/verbose() lines 2023-11-17 16:40:49 -06:00
Max Radermacher
1323ccbe7a
Make JobQueue.isSetup’s container immutable 2023-11-15 18:23:55 -06:00
Sasha Weiss
7f41ecaa8b
Support SEPA bank transfer donations 2023-11-06 13:49:40 -08:00
Sasha Weiss
88f304b0c9
Prune orphaned job records 2023-05-10 14:32:22 -07:00
Sasha Weiss
89f03674df
Remove a debug flag 2023-05-08 18:01:13 -07:00
Max Radermacher
4972bed037
Rename error used for permanent job failures 2023-04-14 20:45:56 -07:00
Sasha Weiss
c9fbc9a9ee
Migrate SSKJobRecord and subclasses to SDSCodableModel using factory init 2023-04-13 10:57:48 -07:00
Max Radermacher
0598c3f9b9
Clean up JobRecordFinder 2023-02-22 13:54:56 -08:00
Sasha Weiss
242dfd2bce
Add all JobQueues to environment, via a wrapper
Currently, only some `JobQueue` types are initialized during startup
(as part of `Environment`, or `SSKEnvironment`). Initialization is
required, however, for a `JobQueue` type to restart any latent jobs.
That means that, for example, a durable `SendGiftBadge` job that failed,
and should be reattempted at a later date, will not in fact be restarted
since no `SendGiftBadgeJobQueue` will be initialized at launch.

This change adds `SSKJobQueues` and `SignalMessagingJobQueues` types,
which are intended to be singletons that hold within them a singleton
job queue for each of our `JobQueue` types. These wrappers are added to
`SSKEnvironment` and `Environment` (from SignalMessaging) respectively,
ensuring that all the `JobQueue`s they contain are initialized as part
of environment setup. The wrappers also avoid the need to add a new
property to the (already large) environment types for each new future
`JobQueue`.

This change also updates all existing call sites that accessed a
`JobQueue` from an environment object, to direct that access now through
the wrapper type.
2022-11-09 14:08:44 -06:00