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>.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SocialNicheGuru’s picture

You wrote: "I implemented hook_nodejs_user_channels() from another module and it worked properly."

Can you post your solution?

RealGecko’s picture

Any progress?
I have the same issue too.

Alex Bukach’s picture

Status: Active » Needs review
Issue tags: -
FileSize
518 bytes

  • arnested committed 282b51f on 7.x-2.x
    Issue #2366407 by Alex Bukach: Nodejs: The channel "ultimate_cron" doesn...
arnested’s picture

Status: Needs review » Fixed

Thank you for the patch, Alex.

I have applied it and released version 7.x-2.9.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.