playframework / playframework/play1
New method "afterInvocation" similar to "afterRequest" but also works on jobs
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 671
- Avg merge
- 12d 15h
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
Is there any reason why the afterRequest method was implemented just for requests and not for jobs?
Describe the solution you'd like
I would like to launch jobs once the current jobs is finished, to make sure the transaction is commited before the next jobs start.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing afterRequest implementation and the job lifecycle entry points, then trace when the current job's transaction is committed. Compare the requested afterInvocation behavior with afterRequest and verify how a follow-up job would be launched. Done means the new hook works for jobs and sequencing is covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100