You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mdjaman You didn't really explain what your problem is.
Would you not use something like the following?
client.watch('testtube',watchErr=>{if(watchErr)console.log(watchErr)client.reserve((err,jobId,rawPayload)=>{varpayload=JSON.parse(rawPayload.toString())// Process `payload` here})})
Encountered same issue with putting jobs from PHP. It turned out, that fivebeans uses it's format of payload.
To make it work, i actually had to format it on PHP side:
$beanstalk->putInTube('testtube', [
'testtube', // Tube name has to be in the payload as well
[
'type' => 'handler-type', // Handler key defined in JS's options object'payload' => $payload // Here goes actual data that worker will receive
]
], $priority, $delay);
Hi as mentioned in the title is not an issue, have an php app in which i put some job via https://github.com/pda/pheanstalk/
then i want fivebeans worker to process the job; unfornatedly i missed something in documentation.
Can someone point me to right track
The text was updated successfully, but these errors were encountered: