Class ThreadLocalJobContext
java.lang.Object
org.jobrunr.server.runner.ThreadLocalJobContext
-
Method Summary
Modifier and TypeMethodDescriptionstatic JobContextReturns theJobContextfor the currently executing job.static boolean
-
Method Details
-
getJobContext
Returns theJobContextfor the currently executing job. This method retrieves theJobContextassociated with the job being processed, allowing access to job metadata, progress reporting, and logging capabilities.- Returns:
- the
JobContextfor the currently executing job - Throws:
JobRunrException- if noJobContextis available
-
hasJobContext
public static boolean hasJobContext()
-