Parameters
Options for querying jobs
Options
Specify the time interval for which data should be queried.
Right now, a temporal extent is required for every query.
WithAutomationID(automationID uuid.UUID)
Specify the automation id for which data should be queried.
Only jobs that were created by the specified automation will be returned.
WithJobStates(states ...workflows.JobState)
Filter jobs by their state. Only jobs in any of the given states will be returned.
WithName(name string)
Filter jobs by name. Only jobs with a matching name will be returned.
WithTaskStates(states ...workflows.TaskState)
Filter jobs by the states of their tasks. Only jobs that have at least one task in any of the given states will be returned. Useful for finding jobs with optional task failures.