i have job "MAIN_JOB" which raise event JOB_SUCCEEDED, second job "LITTLE_JOB" consume this event.
But i have one problem. MAIN_JOB starts chain "MAIN_CHAIN", and always when each step of this chain completed succesfull,
job "MAIN_JOB" raise event "JOB_SUCCEEDED".
How to do so "MAIN_JOB" raise event only once, not for each step?
This is because for each step of chain a job is run. For your request don't set job attribute to raise event but create a step for chain job that raise this event from code. Put this step as last step in chain job.