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

RUCSS rows are not failed when they can't be added to the queue #6271

Closed
MathieuLamiot opened this issue Nov 16, 2023 · 1 comment · Fixed by #6272
Closed

RUCSS rows are not failed when they can't be added to the queue #6271

MathieuLamiot opened this issue Nov 16, 2023 · 1 comment · Fixed by #6272
Assignees
Labels
effort: [XS] < 1 day of estimated development time
Milestone

Comments

@MathieuLamiot
Copy link
Contributor

Context

In 3.15.3, the to-submit status was introduced for RUCSS table. When a row can't be sent to the SaaS (for any reasons, 401, unreachable API, etc...) the row remains in to-submit and is retried at the next cron interval. This can result in infinite loops for unauthorized users, or high CPU usage when a website can't reach the RUCSS API for instance, even if the feature is de-activated.

Expected behavior

  • If a 'to-submit' row can't be sent to the SaaS, then it should be set to a failed status.
  • To-submit jobs should not be processed if the RUCSS feature is not activated.

Acceptance Criteria

  • No regressions with the nominal behavior (no error case).
  • Force the failure of an API call from the plugin to the SaaS to register a job from a 'to-submit' row. The row should go to the status 'failed' with an error_message and error_code filled.
  • Activate the RUCSS feature and purge the RUCSS table, wait for some rows to be added in 'to-submit'. Deactivate the feature. The jobs in to-submit must remain in that state forever. No API call to the SaaS should be performed.

Suggestion

@MathieuLamiot MathieuLamiot added the effort: [XS] < 1 day of estimated development time label Nov 16, 2023
@CrochetFeve0251
Copy link
Contributor

@MathieuLamiot adding a guarding at the entance of process_on_submit_jobs won't be useful at we already disabled it there if RUCSS is not enabled:

@CrochetFeve0251 CrochetFeve0251 self-assigned this Nov 16, 2023
@vmanthos vmanthos added this to the 3.15.5 milestone Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: [XS] < 1 day of estimated development time
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants