Skip to content

feat(cron): Emit event before/after background job execution - #51821

Open
ChristophWurst wants to merge 1 commit into
masterfrom
feat/cron/before-after-events
Open

ChristophWurst wants to merge 1 commit into
masterfrom
feat/cron/before-after-events

Conversation

@ChristophWurst

Copy link
Copy Markdown
Member

Summary

Emit events before and after running background jobs.

TODO

  • Implement
  • Test

Checklist

@ChristophWurst ChristophWurst added 2. developing Work in progress pending documentation This pull request needs an associated documentation update labels Mar 31, 2025
@ChristophWurst ChristophWurst self-assigned this Mar 31, 2025
@juliusknorr
juliusknorr force-pushed the feat/cron/before-after-events branch 2 times, most recently from 3fed4f7 to 69b6c28 Compare April 9, 2025 12:50
@juliusknorr

Copy link
Copy Markdown
Member

Tested and works for me as well 👍

Anything missing still before moving out of draft state @ChristophWurst ?

@ChristophWurst

Copy link
Copy Markdown
Member Author

I wasn't sure if including job arguments is needed or not, but that can be added later too

@ChristophWurst
ChristophWurst marked this pull request as ready for review April 9, 2025 13:09
@ChristophWurst
ChristophWurst requested a review from a team as a code owner April 9, 2025 13:09
@ChristophWurst
ChristophWurst requested review from ArtificialOwl, nfebe and provokateurin and removed request for a team April 9, 2025 13:09
@ArtificialOwl

Copy link
Copy Markdown
Member

Tested and works for me as well 👍

Anything missing still before moving out of draft state @ChristophWurst ?

haven't tested, code looks good.

In case of doubt, we provided the NCU\ namespace for new public interface:
https://docs.nextcloud.com/server/latest/developer_manual/digging_deeper/api.html#php-unstable-api

@ChristophWurst

Copy link
Copy Markdown
Member Author

The API is forward-compatible for extension, we don't need the experimental namespace here

@joshtrichards joshtrichards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks like a reasonable change to me. I actually though we already had this, but guess not... Conflicts need to be resolved, but they look straightforward. Ping me for review again when/if resolved.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Assisted-by: ClaudeCode:claude-opus-5-5
@susnux
susnux force-pushed the feat/cron/before-after-events branch from 69b6c28 to e315561 Compare December 5, 2026 22:17
@susnux

susnux commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@ChristophWurst rebased your PR as I think it still makes sense to have :)
If you also still want this for sentry then lets merge :shipit:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress AI assisted enhancement pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants