Debian Codegraph @

tests/cron_config1.py

raw
1 """
2 Cron configuration file #1 for testing the rqcron management command.
3 Contains 2 jobs for the main test.
4 """
5
6 from rq import cron
7
8 from .fixtures import say_hello
9
10 # Register a simple cron job that runs every minute
11 cron.register(say_hello, 'default', args=('from cron config1',), cron='* * * * *')
12
13 # Register another job that runs every 5 seconds using interval
14 cron.register(say_hello, 'default', args=('every 5 seconds config1',), interval=5)