set_post_format called after wp_update_post when using bulk edit?

I was able to solve my problem by calling set_post_format in my save_post callback and making sure to check if its set and not equal to the “no change” option. Not sure if this is the best way to go, but it works.

require( plugin_admin_dir . 'plugin-sync.php' );
    add_action( 'save_post', 'savethepost', 2000);
    function savethepost($post_id) {
        if (get_post_meta($post_id, '_externaldb_post_donotsync', true) == 1) {
            return;
        } else {
            if (get_post_status( $post_id ) != 'publish') {
                plugin_sync::externaldb_delete($post_id);
            } else {
                if ( isset( $_REQUEST['post_format'] ) && $_REQUEST['post_format'] != -1 ) {
                        set_post_format($post_id, $_REQUEST['post_format']);
                    }
                plugin_sync::externaldb_sync($post_id);
            } // end if
        } // end if
    }