Schedule a single non repeating task
-
I'm trying to schedule a snapshot for 8:00 AM later this week. I've got the task created but when I go to the schedules I only get repeating cron results, I can't get it down to a single event. How can I make the equivalent of an at versus a cron.
And another possibly dumb question, Cron syntax seems to use months 1 through 12 but the web GUI seems to generate 0-11
-
Question for @lsouai-vates
-
@edsilber said in Schedule a single non repeating task:
I'm trying to schedule a snapshot for 8:00 AM later this week. I've got the task created but when I go to the schedules I only get repeating cron results, I can't get it down to a single event. How can I make the equivalent of an at versus a cron.
And another possibly dumb question, Cron syntax seems to use months 1 through 12 but the web GUI seems to generate 0-11
You would do this like this,


Granted this is technically every year on the same day. But you can just disable the job after the job ran.
-
Question on the cron pattern results.
Your results for cron are 0 8 28 9 * but October is selected and the sample set shows october items.
Is this a bug or a european code set vs US code set. 0-11 for months vs 1-12?I might schedule via the jobs tab and cancel after
Thanks, for now I just used at and an xe comnand from the host where the vm livesat now + 1 minute
at> xe vm-snapshot vm=testvmnew-name-label="snap test" new-name-description="snap via cli"
at> ctrl D to savejob runs fine.
I guess I can put in our feature request to have a single job run using AT.
-
@edsilber Yeah I'm not really sure, I also assumed that cron (and XO would use the cron pattern for months). Clearly it doesn't.
Using AT on the CLI of your host/pool should work (I imagine). But yeah having a "Run Now" function in XO would be killer.