Page MenuHomePhorge

Fold WalletCharge and WalletCheck into one
AbandonedPublic

Authored by mollekopf on Jun 3 2024, 11:31 AM.
Tags
None
Referenced Files
F16745328: D4725.id13584.diff
Tue, Nov 5, 6:23 PM
Unknown Object (File)
Mon, Oct 28, 3:54 PM
Unknown Object (File)
Sun, Oct 27, 2:24 PM
Unknown Object (File)
Thu, Oct 24, 9:10 AM
Unknown Object (File)
Wed, Oct 23, 9:50 AM
Unknown Object (File)
Fri, Oct 18, 1:19 AM
Unknown Object (File)
Tue, Oct 15, 1:28 PM
Unknown Object (File)
Oct 1 2024, 2:05 AM
Subscribers

Details

Reviewers
None
Group Reviewers
Restricted Project

Diff Detail

Repository
rK kolab
Branch
dev/mollekopf
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 47544
Build 18018: arc lint + arc unit

Event Timeline

mollekopf created this revision.
mollekopf added a reviewer: Restricted Project.Jun 3 2024, 11:32 AM

Will require at least some more cleanup (remove WalletCharge job and command).

Maybe it makes sense, if huge number of jobs is not an issue. Also we should probably do dispatch($wallet->id) instead of dispatch($wallet) (and do find() instead of refresh()).

One more note. Currently if topUpWallet() throws exception (for any reason, e.g. Mollie connection issues) the WalletCharge job will try to top up the wallet again. Here it won't happen, so it will be more fragile to temporary issues with the payment provider. Catching the exception and invoking a separate WalletCharge job might make sense.

That means at least I wouldn't remove job:walletcharge command (and the job), it might come in handy.