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

chore: Remove deprecated IJob::execute method #48197

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 18, 2024

Summary

IJob::execute is deprecated for quite some time and ILogger does not provide any logging functions anymore.
Now after 3 years we can remove it with Nextcloud 33.

Checklist

@susnux susnux added this to the Nextcloud 33 milestone Sep 18, 2024
@susnux susnux requested a review from come-nc September 18, 2024 22:40
*
* To implement a background job, you must extend either \OCP\BackgroundJob\Job,
* \OCP\BackgroundJob\TimedJob or \OCP\BackgroundJob\QueuedJob
*
* @since 7.0.0
* @since 25.0.0 deprecated `execute()` method in favor of `start()`
* @since 31.0.0 removed deprecated `execute()` method
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
* @since 31.0.0 removed deprecated `execute()` method
* @since 33.0.0 removed deprecated `execute()` method

/**
* Simple base class for a one time background job
*
* @since 15.0.0
* @since 25.0.0 deprecated `execute()` method in favor of `start()`
* @since 31.0.0 removed deprecated `execute()` method
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
* @since 31.0.0 removed deprecated `execute()` method
* @since 33.0.0 removed deprecated `execute()` method

/**
* Simple base class to extend to run periodic background jobs.
* Call setInterval with your desired interval in seconds from the constructor.
*
* @since 15.0.0
* @since 25.0.0 deprecated `execute()` method in favor of `start()`
* @since 31.0.0 removed deprecated `execute()` method
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
* @since 31.0.0 removed deprecated `execute()` method
* @since 33.0.0 removed deprecated `execute()` method

Base automatically changed from chore/remove-ilogger to master September 19, 2024 08:58
@nickvergessen nickvergessen removed this from the Nextcloud 33 milestone Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants