Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add retryTask for all exceptions #3752

Closed

Conversation

tikhanovichA
Copy link
Contributor

@tikhanovichA tikhanovichA commented Mar 1, 2023

For some cases related to remote publications, webhook can be failed because delivery is not ready yet.
We can manage all those retries using retryMax option in the webhookRegistry.conf.php if it will be needed.

We need also backport it to v51.0.3

@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Version

Target Version 51.4.2
Last version 51.4.1

There are 0 BREAKING CHANGE, 0 feature, 2 fixes

@codecov-commenter
Copy link

Codecov Report

Merging #3752 (bac2600) into develop (334c3d5) will increase coverage by 0.00%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             develop    #3752   +/-   ##
==========================================
  Coverage      27.31%   27.32%           
- Complexity     10757    10758    +1     
==========================================
  Files            920      920           
  Lines          32073    32082    +9     
==========================================
+ Hits            8762     8767    +5     
- Misses         23311    23315    +4     
Impacted Files Coverage Δ
models/classes/webhooks/WebhookTaskService.php 0.00% <0.00%> (ø)
models/classes/webhooks/task/WebhookTask.php 90.35% <40.00%> (-4.89%) ⬇️
models/classes/webhooks/task/WebhookTaskParams.php 100.00% <0.00%> (+10.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@andreluizmachado
Copy link
Contributor

Hey, can we also fix PHP CS mentioned on CIs?

Copy link
Contributor

@pnal pnal left a comment

Choose a reason for hiding this comment

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

Please fix a CI CS warning

@@ -39,6 +39,7 @@ public function linkTaskToQueue($queueName);
/**
Copy link
Contributor

@pnal pnal Mar 1, 2023

Choose a reason for hiding this comment

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

public const SERVICE_ID = 'tao/webhookTaskService';
add constant visibility keyword on line 30

Copy link
Member

@wazelin wazelin left a comment

Choose a reason for hiding this comment

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

This looks alright-ish, but potentially dangerous.

Can a more specific exception be added instead to cover the case you're trying to here? If not, consider this approved once the CI is back to green again.

@tikhanovichA tikhanovichA deleted the fix/improve-retry-task-for-all-executions branch August 7, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants