<s> from celery . task import PeriodicTask <EOL> from celery . registry import tasks <EOL> from datetime import timedelta <EOL> from django . conf import settings <EOL> import processing <EOL> class PollingTaskExternal ( PeriodicTask ) : <EOL> run_every = timedelta ( seconds = <NUM_LIT:5> ) <EOL> def run ( self , ** kwargs ) : <EOL> logger = self . get_logger ( ** kwargs ) <EOL> logger . info ( '<STR_LIT>' ) <EOL> logger . info ( '<STR_LIT>' ) <EOL> processing . poll_external ( logger = logger ) <EOL> tasks . register ( PollingTaskExternal ) <EOL> class ProcessResponses ( PeriodicTask ) : <EOL> run_every = timedelta ( seconds = <NUM_LIT:5> ) <EOL> def run ( self , ** kwargs ) : <EOL> logger = self . get_logger ( ** kwargs ) <EOL> logger . info ( '<STR_LIT>' ) <EOL> processing . process_responses ( logger ) <EOL> tasks . register ( ProcessResponses ) </s>
