import os
import sys
import time
import logging
logging.basicConfig(level=logging.DEBUG)

from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler

sys.path.append('/usr/local/d1lod')
from d1lod import jobs

conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)

sched = BlockingScheduler()

@sched.scheduled_job('interval', minutes=10)
def timed_job():
    print('This job is run every 10 minutes.')

@sched.scheduled_job('interval', hours=1)
def debug_job():
    q.enqueue(jobs.update_graph)

@sched.scheduled_job('interval', hours=1)
def debug_job():
    q.enqueue(jobs.calculate_stats)

@sched.scheduled_job('interval', hours=1)
def export_job():
    q.enqueue(jobs.export_graph)

@sched.scheduled_job('interval', minutes=10)
def debug_job():
    jobs.print_jobs()

time.sleep(10)
sched.start()

import sys
import time
import logging
logging.basicConfig(level=logging.DEBUG)

from redis import StrictRedis
from rq import Queue
from apscheduler.schedulers.blocking import BlockingScheduler

sys.path.append('/usr/local/d1lod')
from d1lod import jobs

conn = StrictRedis(host='redis', port='6379')
q = Queue(connection=conn)

sched = BlockingScheduler()

@sched.scheduled_job('interval', minutes=10)
def timed_job():
    print('This job is run every 10 minutes.')

@sched.scheduled_job('interval', hours=1)
def debug_job():
    q.enqueue(jobs.update_graph)

@sched.scheduled_job('interval', hours=1)
def debug_job():
    q.enqueue(jobs.calculate_stats)

@sched.scheduled_job('interval', hours=1)
def export_job():
    q.enqueue(jobs.export_graph)

@sched.scheduled_job('interval', minutes=10)
def debug_job():
    jobs.print_jobs()

time.sleep(10)
sched.start()

Remove os import in scheduler scritp