-
Notifications
You must be signed in to change notification settings - Fork 867
Upgrading to 0.9.x
Jérôme Desboeufs edited this page Aug 3, 2015
·
3 revisions
-
Change your process callbacks moving done to last argument (if you are using a 3 arguments version)
queue.process( 'type', function( job, done, ctx ){});
is now
queue.process( 'type', function( job, ctx, done ){});
-
The same has happened to
queue.shutdown
, soqueue.shutdown( function( err ){}, 5000 );
should be changed to
queue.shutdown( 5000, function( err ){} );
-
Search indexing is now turned off by default, so if you were using this feature in
0.8.x
you should now adddisableSearch: false
to your kue configuration. -
Remove all
queue.promote()
calls within your code. Kue will now take care of them himself ;) -
Built-in web app is upgraded to express 4.0