Is it possible to get node alias during hook_node_insert() I need to get the node alias during a hook_node_insert() when creating a brand new node. Function drupal_lookup_path() returns blank because the node actually isn't created yet per hook_node_insert() docs.

Does anyone know of a way to accomplish this or of an alternative to hook_node_insert().
A couple of options there, if drupal_lookup_path isn't returning the alias yet.


Get the alias using pathauto_create_alias without the _pathauto_set_alias save part ( update: can use the 'return' option)
Add the node id to a cron queue defined with hook_cron_queue_info and get/process the alias in a worker_callback a little later.