Beispiel #1
0
 def get_job_config(self):
     return AuroraConfig(job=Job(
         cluster='west',
         role='bozo',
         environment='test',
         name='the_job',
         service=False,
         task=Task(name='task',
                   processes=[Process(cmdline='ls -la', name='process')],
                   resources=Resources(
                       cpu=1.0, ram=1024 * MB, disk=1024 * MB)),
         contact='*****@*****.**',
         instances=3,
         cron_schedule='* * * * *'))
Beispiel #2
0
 def get_job_config(self, is_cron=False):
     return AuroraConfig(job=Job(
         cluster='west',
         role='bozo',
         environment='test',
         name='the_job',
         service=True if not is_cron else False,
         cron_schedule='* * * * *' if is_cron else Empty,
         task=Task(name='task',
                   processes=[Process(cmdline='ls -la', name='process')],
                   resources=Resources(
                       cpu=1.0, ram=1024 * MB, disk=1024 * MB)),
         instances=3,
     ))