Skip to content

Instantly share code, notes, and snippets.

@HanSooloo
Created August 6, 2022 15:07
Show Gist options
  • Select an option

  • Save HanSooloo/f2cca0c5a3885fd03a231f8b137512fd to your computer and use it in GitHub Desktop.

Select an option

Save HanSooloo/f2cca0c5a3885fd03a231f8b137512fd to your computer and use it in GitHub Desktop.
from scheduler import schedule_function_2
from logger import log
import time
def function_1():
log.info(f'This job does some work in function_1')
time.sleep(15)
log.info(f'Time to schedule function_2 work')
schedule_function_2()
def function_2():
log.info(f'This job does some work in function_2')
time.sleep(15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment