rake jobs:work working fine. problem with script/delayed_job start.
Posted
by krunal shah
on Stack Overflow
See other posts from Stack Overflow
or by krunal shah
Published on 2010-06-17T18:57:34Z
Indexed on
2010/06/17
19:13 UTC
Read the original article
Hit count: 576
I am calling function with LoadData.send_later(:test). LoadData is my class and test is my method.
It's working fine while i am running rake jobs:work.
But when i am running script/delayed_job start or run that time delayed_job.log shows error like
TEastern Daylight Time: *** Starting job worker delayed_job host:KShah pid:5968
TEastern Daylight Time: * [Worker(delayed_job host:KShah pid:5968)] acquired lock on LoadData.load_test_data_with_delayed_job
Could not load object for job: uninitialized constant LoadData
TEastern Daylight Time: * [JOB] delayed_job host:KShah pid:5968 completed after 0.0310
TEastern Daylight Time: 1 jobs processed at 10.6383 j/s, 0 failed ...
Any solution??
© Stack Overflow or respective owner