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

Remove job from oc_jobs when the file is not findable #37937

Merged
merged 1 commit into from
May 3, 2023

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Apr 26, 2023

When an application is disabled, or when a background jobs is removed by the app developer, then the job won't be found at execution time.
In those cases, we return null, but it makes sense to remove those jobs from oc_job.

If the app was disabled, the job will be re-added if the app is enabled again.

@artonge artonge added enhancement 3. to review Waiting for reviews php Pull requests that update Php code labels Apr 26, 2023
@artonge artonge added this to the Nextcloud 27 milestone Apr 26, 2023
@artonge artonge self-assigned this Apr 26, 2023
@artonge artonge requested review from a team, ArtificialOwl, icewind1991 and blizzz and removed request for a team April 26, 2023 13:13
When an application is disabled, or when a background jobs is removed by the app developer, then the job won't be found. In those cases, it makes sense to remove those jobs from oc_job.

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge force-pushed the artonge/feat/remove_non_existing_jobs branch from 1d5ad29 to 8ad2f34 Compare May 3, 2023 08:39
@artonge artonge requested a review from come-nc May 3, 2023 08:40
@skjnldsv skjnldsv mentioned this pull request May 3, 2023
@blizzz blizzz enabled auto-merge May 3, 2023 10:02
@blizzz blizzz merged commit 7a7578c into master May 3, 2023
@blizzz blizzz deleted the artonge/feat/remove_non_existing_jobs branch May 3, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants