Skip to main content
11 events
when toggle format what by license comment
Oct 27, 2014 at 23:15 vote accept Sasha
Oct 24, 2014 at 22:30 answer added hkoosha timeline score: 3
Oct 24, 2014 at 21:25 history edited Sasha CC BY-SA 3.0
deleted 925 characters in body
Oct 24, 2014 at 21:19 history edited Sasha CC BY-SA 3.0
deleted 925 characters in body
Oct 21, 2014 at 12:24 comment added hkoosha I assumed you are not handling the heavy function in Drupal because of PHP's max execution time limit. if it is Drupal I can't think of a performance friendly way of stopping it. But if it's an external service and you set your cron to 5 minutes (and install elysia-cron too!) if the user has not sent a heartbeat for 5 minutes (checked during cron) you send an stop signal to external service.
Oct 21, 2014 at 12:20 comment added hkoosha I think you should provide more information and clarification. How is the background task handled? is it NodeJS? or some remote server? to check if user is still browsing you have to send heartbeats using javascript. In response to each heartbeat the server should answer if data is ready. But what should happen when it is ready? the user should be redirected? a popup should tell user about it? if it's a heavily loaded website I wouldn't suggest handling the heartbeats using Drupal itself. there was some module specific to Ajax request... can't remember the name.
Oct 20, 2014 at 20:13 comment added Sasha Unfortunately, background_process also triggers the function at the same time as node loads thus slowing it down significantly. So my question is still not answered.
Oct 20, 2014 at 19:54 comment added Sasha batch job won't do in our case, but drupal.org/project/background_process where I found a link on drupal.org/node/180528 could do. researching this...
Oct 18, 2014 at 6:41 comment added hkoosha maybe you need a batch job? drupal.org/node/180528
Oct 18, 2014 at 6:18 answer added xurshid29 timeline score: 0
Oct 17, 2014 at 23:42 history asked Sasha CC BY-SA 3.0