Skip to content
Advertisement

Tag: scheduled-tasks

Django – Celery 4.1 with django-celery-beat/rabbitmq : Nothing?

I followed the tutorial on http://docs.celeryproject.org/en/latest/ and I am on virtualbox (Xubuntu 16.XX TLS), Django 1.11.3, Celery 4.1 . rabbitmq 3.6.14, Python 2.7 . and when I started the daemonization with the init-script: celerybeat (with /etc/default/celeryd config file) [2017-11-19 01:13:00,912: INFO/MainProcess] beat: Starting… and nothing more after. Do you see what could I make wrong ? My celery.py: some_app/tasks.py: /etc/default/celeryd:

Changing nice value of a process has no effect in Linux

I read about APUE 3rd, 8.16 Process Scheduling, there is an example written to verify that changing nice value of a process will affect its priority, I rewrite the code like below: And the result of the example is shown below: NZERO = 20 parent nice:20 child nice:20, adjusted by 0 child now nice:20 parent count:601089419 child count:603271014 Looks like

implicit declaration of function ‘sched_setaffinity’

I’m writing a program which needed to be run on single core. To bind it to single core, I’m using sched_setaffinity(), but the compiler gives warning: implicit declaration of function ‘sched_setaffinity’ My test code is: Can you please help me to figure it out. Actually code is compiled and run, but I’m not sure whether it is running on single

Advertisement