added -R, --retry COUNT option to sched:create, sched:update and query subcommands