summary refs log tree commit diff
path: root/configs/aurora/smf1-test-cron-job.aurora
blob: 3ade1b43e46272a9587ab67d5fa73c78414b813f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# A cron job that runs every 5 minutes.
jobs = [
  Job(
    cluster = 'smf1-test',
    role = 'fcuny',
    environment = 'test',
    name = 'cron_hello_world-trashing',
    cron_schedule = '*/5 * * * *',
    constraints = {
        'host': 'smf1-fki-17-sr1',
    },
    instances=10,
    task = SimpleTask(
      'cron_hello_world',
      'echo "Hello world from cron, the time is now $(date --rfc-822)"'),
  ),
]