How to run multiple action under one scheduler task consecutively? - windows

In Windows task scheduler I have a task. For example: Test
Under that, I have 3 actions.
Problem is all 3 actions execute at the same time.
I have a requirement that each actions starts only after the previous one ends.
Is there way we can set these conditions?

Related

Problem with Quartz and Tasks Simultaneous

I have some problems with a project that includes Spring Framework and Quartz tasks. I have some tasks that starts each one minute and a have a loop with 3 companies (object Company) inside this loop.
Each company must starts one particular task simultaneously, but generally, these 3 taks have duration longer than one minute.
Then a need these 3 tasks continue executing simultaneously (3 threads at the same time), but each one must wait their similar tasks (new tasks after one minute) finish and then it starts again.
I'm using Spring and I'm using taskExecutor to start de new thread. I dont know if its the best way to call the job class.
I hope I was clear.

Mapping in informatica

I have a job in GECS scheduler which will trigger a informatica workflow, if the job is late for 10 min then we need to create a mapping such a way that it will fail the workflow and trigger a mail to outlook saying the workflow is failed
You can branch off your main workflow line to a timer task which starts as soon as the workflow starts. Set the timer to wait for the specified number of minutes then route to an email task on condition that the last task of the workflow has not succeeded. One caveat to this approach is that the workflow will always run for no less than the timer task is set for even when the rest of it has completed early. For this reason it is pragmatic to replace the timer task with a command task to a script which checks every few seconds for the final task completion and exits when this is true or after the set time interval

How to schedule a task to open a program every 3 minutes?

I know there are some other questions about this, but how do I set the task scheduler to open a file/program every x minutes starting right after the task was ran.
I'm making a program that has a script that has to be ran every 3 minutes and the best way is the task scheduler.
I have tried messing with the settings and I found "Repeat task every x minutes" but the problem with that is I have to set the starting time and I don't want that. I want it to start repeatin the task as soon as it was started.
Thanks!
You could combine a task that runs on login with a batch script that loops endlessly running the program you want every 3 minutes.

How can you run more than one simultaneous job in Ansible Tower?

It seems that all jobs are enqueued, and only one will run at a time. How can we run more than one?
Tower is designed to parallelize jobs, but there are a couple of cases where it will not.
If you have your inventory or SCM set up to "update on launch" with no cache or the cahche has expired, then any additional jobs will be stuck pending behind the inventory or SCM update. The inventory and SCM will not update until after the currently running job is done.
If you are trying to run multiple jobs against the same host: Tower will not run multiple jobs against the same host at the same time in order to avoid race conditions. (localhost is a possible exception). If you need multiple jobs to run against the same host at the same time then you need to create two inventories and put that host in both inventories, running the two jobs against different inventories. In this situation, Tower does not know that you are running against the same host.
Jobs which share the same Inventory or SCM source can not run at the same time.
Suppose you have a job comprised of three tasks:
task 1: "do x", task 2: "do y", task 3: "do z"
With ansible "do x" will run on all the servers, then "do y" will run on all the servers, then "do z" will run on all the servers.
Also, I said "all serves" but in fact it maxes out at the ansible "forks" value, which defaults to 5. In my 100 server enviroment I set this value to 20. more on this here: http://docs.ansible.com/intro_configuration.html#forks
Remember the strength of ansible is doing a job ( a collection of tasks) on many machines at the same time. If what you want is to run the same task many times on a single machine, then you want something like fork, or parallel.
In fact Ansible will try to run "do x" as many times as it can across many machines. You can adjust this behavior having the whole job run on a portion of machines before it gets started on more machines with the "serial" keyword (http://docs.ansible.com/playbooks_delegation.html#rolling-update-batch-size).
Not the subtle difference between forks, and serial.
forks is "per task"
serial is "per job" ( collection of tasks )
David Thornton
Edit:I re-read your question. This is about running more than one job at a time, not running more than on task in a job. So I think you are correct for ansible-awx but not for the command line. Via the web interface you can submit a job to the job queue, but you can't make ansible-awx run more than one task at a time. I think. However via command line, if you open more than one window you can run multiple ansible-playbooks at the same time. Do you have an ansible support account? Those guys are great IMHO, they have taken a lot of time to answer my questions ( like your question ).
Simultaneous jobs can be executed from Tower. Job templates have "Enable Concurrent Jobs" option. See section "15.4. Job Concurrency" at http://docs.ansible.com/ansible-tower/latest/html/userguide/jobs.html.
If i have 3 different tasks on a single server running its called synchronous mode management, 3 tasks will be assigned to a single job ID , and each tasks executes one after the other were it consumes lots of time.
In Ansible version later than 2.5 we can get 3 job ID for 3 different tasks , and start executing at a same time were we can save a huge time.This type is called asynchronous mode.

Task Scheduler - Windows 7

I have 5 files that I would like to schedule to run monthly in windows 7 task scheduler. Problem is I want them to run in succession of one another.
Example:
File1 (this runs first)
File2 (this runs after file 1 is done running)
File3 (this runs after file 2 is done running)
and so on...
How do I go about this? Thanks!
From Windows Help (applies to Vista or later):
A task action is the work that is performed when the task is run. A task can have a single action or a maximum of 32 actions. Each action contains settings that determine how the action is performed. A task's actions are displayed on the Actions tab of the Task Properties or Create Task dialog box. When multiple actions are specified, they are executed in sequential order starting with the action at the top of the list in the Actions tab and ending with the action at the bottom of the list. You can change the order in which the actions are executed by selecting an action and clicking on the up or down arrow button to move the action in the list.
Create a batch file containing all of your commands one after the other and then schedule the batch file to run.

Resources