<s> import os <EOL> from pysteam import paths as steam_paths <EOL> from pysteam import shortcuts <EOL> from pysteam import steam as steam_module <EOL> from ice import backups <EOL> from ice import configuration <EOL> from ice import consoles <EOL> from ice import emulators <EOL> from ice import paths <EOL> from ice import settings <EOL> from ice . logs import logger <EOL> from ice . persistence . config_file_backing_store import ConfigFileBackingStore <EOL> class TaskEngine ( object ) : <EOL> def __init__ ( self , steam ) : <EOL> self . steam = steam <EOL> logger . debug ( "<STR_LIT>" ) <EOL> is_user_context = lambda context : context . user_id != '<STR_LIT>' <EOL> self . users = filter ( is_user_context , steam_module . local_user_contexts ( self . steam ) ) <EOL> def run ( self , tasks , app_settings , dry_run = False ) : <EOL> if self . steam is None : <EOL> logger . error ( "<STR_LIT>" ) <EOL> return <EOL> logger . info ( "<STR_LIT>" ) <EOL> for task in tasks : <EOL> task ( app_settings , self . users , dry_run = dry_run ) </s>
