/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.15.90 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-internal/0.15.90/java_models */ package io.apibuilder.internal.v0.models; public class Task { private java.util.UUID guid; private TaskData data; /** * Records the number of times we have attempted to run this task. Commonly we increment number attempts, process the task, and if succeeds we then delete the task. If it fails, we update last_error. This allows us to retry a task say twice; after which we no longer process the task (can notify an admin of the error). */ private long numberAttempts = 0; private String lastError; public Task() {} }