inlife/nexrender

Call error state in jsx file from action (predownload,prerender,or...)

Closed this issue · 1 comments

hello nexrender
use nexrender-worker.exe and nexredner-server.exe and add job with request from another server(server laravel) to nexredner-server(with worker in one server) in another location.
i want running a script before every job to when change state job send request state to my server (because i want to manage requests from server and dont need to evey 10 secound request from laravel to server render .its reverse )
i add action to predownload in json to run this script when starting a job for rendering
write this code but just running some state and dont run state error to when job state is error send request state:error to my server larvel and store on database
please help . how to do ? and witch is way is better?or every way please suggest

module.exports = (job, settings, action, type) => {
job.onChange = (job) => {
switch (job.state) {
case 'render:dorender':
updateStatus('2', action.id);
break;
case 'render:postrender':
updateStatus('3', action.id);
break;
case 'error':

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.