Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm trying ultimate cron with nodejs but it seems that ultimate cron it's not registering the channel. I'm attaching the debug message from nodejs. I implemented hook_nodejs_user_channels() from another module and it worked properly.
Drupal 7.32
Nodejs 1.19
publishMessageToContentChannel: message { channel: 'ultimate_cron',
data:
{ action: 'lock',
job:
{ progressUpdated: 0,
jid: null,
name: 'ctools_cron',
title: 'Clean up old caches',
settings: [Object],
export_type: 2,
type: 'Default',
description: 'Default cron handler',
table: 'ultimate_cron_job',
disabled: false,
hook: [Object],
sort: [Object],
lock_id: 'serial-158',
log_entry: [Object],
progress: false },
timestamp: 1414681283.861,
elements:
{ 'tr#ctools_cron .ctools-export-ui-start-time': '<td class="ctools-export-ui-start-time" title="N/A">2014-10-30 10:01:23</td>',
'tr#ctools_cron .ctools-export-ui-duration': '<td class="ctools-export-ui-duration" title=""><span class="duration-time" data-src="0">00:00</span> <span class="duration-progress"></span></td>',
'tr#ctools_cron .ctools-export-ui-status': '<td class="ctools-export-ui-status" title="running"><img src="http://localhost/gluky2/sites/all/modules/ultimate_cron/icons/hourglass.png" alt="" /></td>',
'tr#ctools_cron .ctools-export-ui-operations': '<td class="ctools-export-ui-operations"></td>' } },
callback: 'nodejsUltimateCron',
clientSocketId: '' }
publishMessageToContentChannel: <strong>The channel "ultimate_cron" doesn't exist</strong>.
Comment | File | Size | Author |
---|---|---|---|
#3 | ultimate_cron-nodejs-channel-2366407-3.patch | 518 bytes | Alex Bukach |
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedYou wrote: "I implemented hook_nodejs_user_channels() from another module and it worked properly."
Can you post your solution?
Comment #2
RealGecko CreditAttribution: RealGecko commentedAny progress?
I have the same issue too.
Comment #3
Alex Bukach CreditAttribution: Alex Bukach commentedComment #5
arnested CreditAttribution: arnested at Reload commentedThank you for the patch, Alex.
I have applied it and released version 7.x-2.9.