def submitter(): configure_logging(daemon=True, daemon_log_file=DAEMON_LOG_FILE) from aiida.daemon.execmanager import submit_jobs LOGGER.info('Checking for calculations to submit') set_daemon_timestamp(task_name='submitter', when='start') submit_jobs() set_daemon_timestamp(task_name='submitter', when='stop')
def manual_tick_all(): from aiida.daemon.execmanager import submit_jobs, update_jobs, retrieve_jobs from aiida.work.daemon import tick_workflow_engine from aiida.daemon.workflowmanager import execute_steps submit_jobs() update_jobs() retrieve_jobs() execute_steps() # legacy workflows tick_workflow_engine()
def submitter(): from aiida.daemon.execmanager import submit_jobs print "aiida.daemon.tasks.submitter: Checking for calculations to submit" set_daemon_timestamp(task_name='submitter', when='start') submit_jobs() set_daemon_timestamp(task_name='submitter', when='stop')