Abstract
Protected
Readonly
appProtected
Readonly
cloudProtected
Readonly
dataProtected
Readonly
eventProtected
Readonly
gpuProtected
Readonly
idProtected
Readonly
jobProtected
Readonly
jobProtected
Readonly
loggerProtected
Readonly
pubProtected
Readonly
scheduledProtected
Readonly
workerProtected
applyOptional
filter: JobsFilterProtected
applyCreate a new job.
The job class ref (e.g. TestJob).
The options for creating the job.
The context for the service method.
The created job.
Protected
generateGenerates a new ID for a job entity.
The generated ID.
Protected
getGet the Cloud Run job name for a worker type.
The worker type.
The Cloud Run job name or null if the worker not running on CloudRun Job.
Retrieves the class reference for a job entity of the specified type or throws a NotFoundException
if it is not found.
The type of the job entity to retrieve.
The context of the service method.
The class reference for the specified job entity type.
Retrieves multiple job entities based on the provided options.
The options to use when retrieving the job entities.
A promise that resolves to an array containing the retrieved job entities and list metadata.
Retrieves the next job entity from the queue for the specified worker type.
The worker type for which to retrieve the next job entity.
A promise that resolves to the retrieved job entity, or null if there are no available job entities in the queue.
Retrieves a single job entity of the specified class by the given ID.
The type of the job entity to retrieve.
The class reference of the job entity to retrieve.
The ID of the job entity to retrieve.
A promise that resolves to the retrieved job entity, or null if it was not found.
Retrieves a single job entity of the specified class by the given options.
The type of the job entity to retrieve.
The class reference of the job entity to retrieve.
A promise that resolves to the retrieved job entity, or null if it was not found.
Retrieves a single job entity of the specified class by the given options or throws a NotFoundException
if it is not found.
The type of the job entity to retrieve.
The class reference of the job entity to retrieve.
The options to use when retrieving the job entity.
The context of the service method.
A promise that resolves to the retrieved job entity.
Retrieves a single job entity of the specified class by the given ID or throws a NotFoundException
if it is not found.
The type of the job entity to retrieve.
The class reference of the job entity to retrieve.
The ID of the job entity to retrieve.
The context of the service method.
A promise that resolves to the retrieved job entity.
Get the options for creating a scheduled job.
The job class reference.
The options for creating the scheduled job.
Protected
getGet the worker type for a job.
The worker type for the job or null if the worker type not found.
Lock a job for processing.
The options for locking the job.
True if the job was successfully locked, false otherwise.
Restart a job.
The options for restarting the job.
The context for the service method.
The restarted job.
Run a job.
The job to run.
The context for the service method.
Runs queued jobs up to the maximum available parallel jobs count.
The context for the service method.
A promise that resolves when all queued jobs have been processed.
Runs scheduled jobs every minute.
The context for the service method.
A promise that resolves when all scheduled jobs have been processed.
Update a job.
The options for updating the job.
The context for the service method.
The updated job.
Service for managing jobs.