Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
c532b2fa
Commit
c532b2fa
authored
Jul 25, 2017
by
Rik ter Beek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#138 fix recurring_contract notification is stuck in processing mode and not executed.
parent
7273f64d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Model/Cron.php
Model/Cron.php
+7
-4
No files found.
Model/Cron.php
View file @
c532b2fa
...
...
@@ -229,9 +229,8 @@ class Cron
foreach
(
$notifications
as
$notification
)
{
// set Cron processing to true
$dateEnd
=
new
\DateTime
();
$notification
->
setProcessing
(
true
);
$notification
->
setUpdatedAt
(
$dateEnd
);
$notification
->
setUpdatedAt
(
new
\DateTime
()
);
$notification
->
save
();
}
...
...
@@ -253,6 +252,11 @@ class Cron
"This is a recurring_contract notification wait an extra 5 minutes
before processing this to make sure the contract exists"
);
// set processing back to false
$notification
->
setProcessing
(
false
);
$notification
->
setUpdatedAt
(
$dateEnd
);
$notification
->
save
();
continue
;
}
...
...
@@ -329,10 +333,9 @@ class Cron
$this
->
_order
->
save
();
// set done to true
$dateEnd
=
new
\DateTime
();
$notification
->
setDone
(
true
);
$notification
->
setProcessing
(
false
);
$notification
->
setUpdatedAt
(
$dateEnd
);
$notification
->
setUpdatedAt
(
new
\DateTime
()
);
$notification
->
save
();
$this
->
_adyenLogger
->
addAdyenNotificationCronjob
(
sprintf
(
"Notification %s is processed"
,
$notification
->
getEntityId
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment