Class: Google::Cloud::Tasks::V2beta3::Queue
- Inherits:
-
Object
- Object
- Google::Cloud::Tasks::V2beta3::Queue
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/tasks/v2beta3/queue.rb
Overview
A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, queue types, and others.
Defined Under Namespace
Instance Attribute Summary collapse
-
#app_engine_http_queue ⇒ ::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue
AppEngineHttpQueue settings apply only to [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-
#name ⇒ ::String
Caller-specified and required in CreateQueue, after which it becomes output only.
-
#purge_time ⇒ ::Google::Protobuf::Timestamp
Output only.
-
#rate_limits ⇒ ::Google::Cloud::Tasks::V2beta3::RateLimits
Rate limits for task dispatches.
-
#retry_config ⇒ ::Google::Cloud::Tasks::V2beta3::RetryConfig
Settings that determine the retry behavior.
-
#stackdriver_logging_config ⇒ ::Google::Cloud::Tasks::V2beta3::StackdriverLoggingConfig
Configuration options for writing logs to Stackdriver Logging.
-
#state ⇒ ::Google::Cloud::Tasks::V2beta3::Queue::State
Output only.
-
#stats ⇒ ::Google::Cloud::Tasks::V2beta3::QueueStats
readonly
Output only.
-
#task_ttl ⇒ ::Google::Protobuf::Duration
The maximum amount of time that a task will be retained in this queue.
-
#tombstone_ttl ⇒ ::Google::Protobuf::Duration
The task tombstone time to live (TTL).
-
#type ⇒ ::Google::Cloud::Tasks::V2beta3::Queue::Type
Immutable.
Instance Attribute Details
#app_engine_http_queue ⇒ ::Google::Cloud::Tasks::V2beta3::AppEngineHttpQueue
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#name ⇒ ::String
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#purge_time ⇒ ::Google::Protobuf::Timestamp
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#rate_limits ⇒ ::Google::Cloud::Tasks::V2beta3::RateLimits
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#retry_config ⇒ ::Google::Cloud::Tasks::V2beta3::RetryConfig
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#stackdriver_logging_config ⇒ ::Google::Cloud::Tasks::V2beta3::StackdriverLoggingConfig
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#state ⇒ ::Google::Cloud::Tasks::V2beta3::Queue::State
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#stats ⇒ ::Google::Cloud::Tasks::V2beta3::QueueStats (readonly)
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#task_ttl ⇒ ::Google::Protobuf::Duration
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#tombstone_ttl ⇒ ::Google::Protobuf::Duration
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |
#type ⇒ ::Google::Cloud::Tasks::V2beta3::Queue::Type
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'proto_docs/google/cloud/tasks/v2beta3/queue.rb', line 166 class Queue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # State of the queue. module State # Unspecified state. STATE_UNSPECIFIED = 0 # The queue is running. Tasks can be dispatched. # # If the queue was created using Cloud Tasks and the queue has # had no activity (method calls or task dispatches) for 30 days, # the queue may take a few minutes to re-activate. Some method # calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and # tasks may not be dispatched for a few minutes until the queue # has been re-activated. RUNNING = 1 # Tasks are paused by the user. If the queue is paused then Cloud # Tasks will stop delivering tasks from it, but more tasks can # still be added to it by the user. PAUSED = 2 # The queue is disabled. # # A queue becomes `DISABLED` when # [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) # or # [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) # is uploaded which does not contain the queue. You cannot directly disable # a queue. # # When a queue is disabled, tasks can still be added to a queue # but the tasks are not dispatched. # # To permanently delete this queue and all of its tasks, call # {::Google::Cloud::Tasks::V2beta3::CloudTasks::Client#delete_queue DeleteQueue}. DISABLED = 3 end # The type of the queue. module Type # Default value. TYPE_UNSPECIFIED = 0 # A pull queue. PULL = 1 # A push queue. PUSH = 2 end end |