I am not sure that my cron run well, because nothing change on the cron interface.
The crons times in the table are not updated. In the status report, the cron is updated correctly but the other informations not (out of date modules, etc...). Is it a normal behaviour or not ?
I mean, if I run my cron only with drush, no information are updated in the cron section in Drupal, but the Cron maintenance tasks in the status report is updated correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | ultimate_cron-drush.patch | 3.26 KB | gielfeldt |
Comments
Comment #1
gielfeldt commentedHmmm. Sounds a bit odd.
Have you disabled Ultimate Cron's poorman's feature, and what does your crontab line look like?
Comment #2
michee.lengronneYes, I have desactivated poormanscron. here is my crontab:
* * * * * /usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COLUMNS=72 /usr/local/bin/drush -r /test @sites cron-run --cli all --y > /dev/null 2>&1
Comment #3
gielfeldt commentedHi again
Sorry for the late reply. I have not had time to look further into this, and I have no immediate idea on where the problem lies. I'll see if I can find some time for this tonight.
Comment #4
gielfeldt commentedJust to clarify, is it on /admin/config/system/cron or /admin/reports/status that nothing gets updated?
In any case, I can't seem to reproduce this error. Is the problem also present if you run drush cron-run manually?
Comment #5
michee.lengronnewhen I do it manually, /admin/config/system/cron works but not /admin/reports/status.
Comment #6
michee.lengronneAnother problem. When I use the cron manually by the drupal interface there is no problem, but when I use it via Drush all the crons are blocked.
It is maybe the origin of the bug. What is the way to debug the crons via Drush ?
Comment #7
gielfeldt commentedHi
I think it might be due to the -r parameter (among others) not being passed to the subrequests.
Does it work when running a single job from drush, e.g.
Comment #8
gielfeldt commentedBTW, you're using --cli, but that's only available in the dev-version now that I think of it? Are you using the dev version or 1.6?
If running a single job works, as mentioned in my previous post, I have a patch (for 7.x-1.x-dev) you can try out.
Comment #9
michee.lengronneThank you. I will test it when I have time. I don't ude the dev version so, maybe, --cli is the origin of the troubles.
Comment #10
gielfeldt commentedHi
Did this patch work for you?
Comment #11
gielfeldt commentedComment #12
gielfeldt commented