timers.management.commands package¶
Submodules¶
timers.management.commands.runtimers module¶
-
class
timers.management.commands.runtimers.Command(stdout=None, stderr=None, no_color=False)¶ Bases:
django.core.management.base.BaseCommandCommand used to start sending messages via websockets and http requests to trigger determined tasks
-
add_arguments(parser)¶ Command arguments setup
-
get_http_tasks(options)¶ Defines the list of tasks that imply an http request
- Args:
- options (dict): optional arguments passed to the command
- Returns:
- list: A list of tasks
-
get_http_url(options)¶ Returns the url to make http requests
- Args:
- options (dict): optional arguments passed to the command
- Returns:
- string: the url
-
handle(*args, **options)¶ Start periodic tasks in an ioloop
-
help= 'Send messages via websockets or http requests to trigger determined tasks'¶
-