Latest RC: v0.11.rc2 (2020-11-23)
Improvements:
- Worker: drop job (return 205 response) when worker arguments are not available (e.g. arguments were stored in Redis and the latter was flushed)
- Rails: add ActiveJob adapter (thanks @vovimayhem)
v0.10.1 (2020-10-05)
Fixed bugs:
- Local server: delete dead task from local server queue
- Logging: fix log processing with
semantic_loggerv4.7.2. Accept any args on block passed to the logger. - Worker: fix configuration of
max_retriesat worker level
v0.10.0 (2020-09-02)
Improvements:
- Logging: Add worker name in log messages
- Logging: Add job duration in log messages
- Logging: Add Cloud Cloud Task ID in log messages
- Unique Job: Support TTL for lock keys. This feature prevents queues from being dead-locked when a critical crash occurs while processing a unique job.
- Worker: support payload storage in Redis instead of sending the payload to Google Cloud Tasks. This is useful when job arguments are expected to exceed 100kb, which is the limit set by Google Cloud Tasks
Fixed bugs:
- Local processing error: improve error handling and retries around network interruptions
- Redis client: prevent deadlocks in high concurrency scenario by slowing down poll time and enforcing lock expiration
- Redis client: use connecion pool with Redis to prevent race conditions
- Google API: improve error handling on job creation
- Google API: use the
X-CloudTasks-TaskRetryCountinstead ofX-CloudTasks-TaskExecutionCountto detect how many retries Google Cloud Tasks has performed. UsingX-CloudTasks-TaskRetryCountis theoretically less accurate than usingX-CloudTasks-TaskExecutionCountbecause it includes the number of "app unreachable" retries butX-CloudTasks-TaskExecutionCountis currently bugged and remains at zero all the time. See this issue
v0.9.4 (2020-10-05)
Fixed bugs:
- Logging: fix log processing with
semantic_loggerv4.7.2. Accept any args on block passed to the logger.
v0.9.3 (2020-06-25)
Fixed bugs:
- Google Cloud Tasks: lock version to
~> 1.0(Google recently released a v2 which changes its bindings completely). An issue has been raised to upgrade Cloudtasker togoogle-cloud-tasksv2.
v0.9.2 (2020-03-04)
Fixed bugs:
- Cloud Task: ignore "not found" errors when trying to delete an already deleted task.
v0.9.1 (2020-02-11)
Fixed bugs:
- Cloud Task: raise
Cloudtasker::MaxTaskSizeExceededErrorif job payload exceeds 100 KB. This is mainly to have production parity in development when running the local processing server.
v0.9.0 (2020-01-23)
Fixed bugs:
- Cloud Task: Base64 encode task body to support UTF-8 characters (e.g. emojis).
- Redis: Restrict to one connection (class level) to avoid too many DNS lookups
Migration For Sinatra applications please update your Cloudtasker controller according to this diff.
v0.8.2 (2019-12-05)
Fixed bugs:
- Config: do not add processor host to
Rails.application.config.hostsif originally empty.
v0.8.1 (2019-12-03)
Fixed bugs:
- Local dev server: ensure job queue name is kept when taks is retried
- Rails/Controller: bypass Rails munge logic to preserve nil values inside job arguments.