group.add_option('-p','--pipeline',dest='pipeline',action='store_true',help='simulate events for pipeline subtasks')
group.add_option('-Q','--QA',dest='QA',action='store_true',help='simulate events for QA subtasks')
group.add_option('-i','--ingest',dest='ingest',action='store_true',help='simulate events for ingest subtasks')
group.add_option('-c','--cleanup',dest='cleanup',action='store_true',help='simulate events for cleanup subtasks')
group=OptionGroup(parser,'Simulation parameters')
parser.add_option_group(group)
group.add_option('-e','--event_delay',dest='event_delay',type='float',default=1.0,help='wait <event_delay> seconds between simulating events to mimic real-world behaviour, default: %default')
group.add_option('-d','--duration',dest='duration',type='float',default=60.0,help='wait <duration> seconds while "observing"/"processing" between started and finishing state to mimic real-world behaviour, default: %default')
group.add_option('-g','--grant_ingest_permission',dest='grant_ingest_permission',action='store_true',help='automatically grant ingest permission for ingest subtasks if needed')