Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Add update command #324

Closed
wants to merge 3 commits into from
Closed

Add update command #324

wants to merge 3 commits into from

Conversation

ciungulete
Copy link
Contributor

No description provided.

src/Console/Commands/CashierUpdate.php Show resolved Hide resolved
src/Console/Commands/CashierUpdate.php Outdated Show resolved Hide resolved
src/Console/Commands/CashierUpdate.php Outdated Show resolved Hide resolved

$this->comment('Import Mollie payments, first payment actions');
$paymentsIds->each(function ($payment) use ($mollieApi) {
$molliePaymentData = $mollieApi->payments()->get($payment);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mollie will throttle this if too many requests come in at once, causing a Mollie ApiException. Need to come up with a more robust solution, how about queued jobs with a rate limiter?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the app is backwards compatible it can run in the background, no need to wait for the queue to finish.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if the app doesn't use queue?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can even work with the table queue driver. I don't think there's a way around it, other than introducing sleep(1), which is messy here 😜

@sandervanhooft
Copy link
Collaborator

I'm holding off on the update command until after release. Will close this for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants