Comments (5)
I'll still commit a small patch to avoid these errors on v0.12
. Having some guarding against nil on the local server won't hurt.
Thanks for reporting this!
from cloudtasker.
Hi @feute,
It's weird, it's as if the local server queue was filled with an empty task. Would you be able to try using v0.12.rc9
instead and let me know if the result is the same on your side?
Also, side question, do you have any logic in your application regularly clearing the cache? Or any other application running in parallel tampering with the cache?
If so, you may point Cloudtasker to a different redis database using the config.redis = { url: 'redis://localhost:6379/5' }
configuration option.
from cloudtasker.
I only use redis for ActionCable. I tried adding the config line for redis to use the /5
database but it didn't do anything, I guess it's because the default is /0
while ActionCable is configured to use /1
, so it doesn't interfere.
I installed v0.12.rc9
and it seemed to work better. Sometimes I get the error with the DummyWorker
: I fire up the console and call perform_async
on the class and I get the error most of the time, but after retrying once or twice it starts to work. I kept the config.redis
line just in case.
Is it safe to use v0.12.rc9
on production? I only mean to use it as a backend for ActiveJob (at least for now).
Edit: I get the error with the job as well, but only sometimes, and it works again if I call the perform_later
function again. Would it be possible that the task is being added to redis after it is being pop
'd by cloudtasker? I don't know if cloudtasker ensures that the data is present on redis before calling pop
, but I'd think it's something like that because it works most of the time.
from cloudtasker.
v0.12.rc9
is safe to use in production (we currently use this version at Keypup and have processed millions of jobs already).
Now for the purpose of prod you can actually use v0.11.0
as well. The issue you're facing is only related to the cloudtasker local server, which is only to be used in development. In prod it's Google Cloud Tasks that will send the tasks to your application so the issue will not arise.
Just out of curiosity, do you have only one cloudtasker process running in dev? Or do you have several applications running it? Or do you use foreman process scaling options? (foreman start web=2 worker=3
etc.)
from cloudtasker.
That's what I thought, that it could be affecting the local server only. I think I'm going to use v0.12.rc9
because it works better for me.
I do have only one cloudtasker process running. I start it with foreman start
, with no extra configuration.
Anyway, if I find out the cause of this particular error (something that is on my end) I'll update this issue. For now, I'll use the 0.12.rc9
version.
Thank you!
from cloudtasker.
Related Issues (20)
- SSL on Cloudtasker Local Server
- Question: configure processor_host via environment variable HOT 5
- Batch callback that fires only when all children complete successfully
- Odd error on boot HOT 3
- default isn't the only default queue if using active job HOT 1
- TypeError: wrong argument type Symbol (expected String) HOT 6
- ActionController::InvalidAuthenticityToken for Cloudtasker::WorkerController#run HOT 11
- Inconsistent executions count with ActiveJob.retry_on HOT 7
- Configure a specific processor_host for Cloudtasker::Cron::Schedule HOT 3
- grpc cannot be used before and after forking with `deliver_later` HOT 5
- Cloudtasker::Cron::Schedule crash application load when schedule tasks due date is 720 hours in the future HOT 2
- Remove `google-gax` dependency. HOT 3
- Post-install message from google-gax HOT 4
- Cloudtasker::Cron::Schedule trying to access wrong project and queue - not respecting initializer configuration HOT 4
- [Question/docs] How is the GCP project id retrieved when running on GCP? HOT 3
- Make Queue Prefix not necessary HOT 1
- Question: What would be the best way to push thousands of jobs at once? HOT 2
- Getting a cryptic error on boot HOT 3
- Force the job_id for ActiveJob
- Protobuf serialization errors: ArgumentError (Value 600 must be a Hash or a Google::Protobuf::Duration) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudtasker.