celery.node icon indicating copy to clipboard operation
celery.node copied to clipboard

How to implement ETA, crontab?

Open moha-moradi opened this issue 5 years ago • 2 comments

like node-celery : var celery = require('node-celery'), client = celery.createClient({ CELERY_BROKER_URL: 'amqp://guest:guest@localhost:5672//', });

client.on('connect', function() { client.call('send-email', { to: '[email protected]', title: 'sample email' }, { eta: new Date(Date.now() + 60 * 60 * 1000) // an hour later }); });

moha-moradi avatar Oct 26 '20 11:10 moha-moradi

Hi. Unfortunately, ETA is not implemented yet on celery.node. Client-side task options like eta are quite easy to implement. (just add to task message) But on the other hand, we have to consider how to dispatch messages at the time or recover messages when the worker is terminating on worker-side implementation. So I'm thinking about it nowadays.

If you want to eta feature on just the client-side, I can make it as soon as possible.

actumn avatar Oct 26 '20 13:10 actumn

any update on this? thanks

susyabashti avatar Mar 12 '23 15:03 susyabashti