Esempio n. 1
0
def a():
    c = input('Your number( what task do you want to do): ')
    if c == '1':
        import task1
        task1.main()
        a()
    elif c == '2':
        import task2
        task2.main()
        a()
    elif c == '3':
        import task3
        task3.main()
        a()
    else:
        exit()
Esempio n. 2
0
def process1():
    from task1 import main

    print("ID of process running process1: {}".format(os.getpid()))
    main(START + 1, url)
Esempio n. 3
0
def process6():
    from task6 import main

    print("ID of process running process6: {}".format(os.getpid()))
    main(START + 6, url)
Esempio n. 4
0
def process5():
    from task5 import main

    print("ID of process running process5: {}".format(os.getpid()))
    main(START + 5, url)
Esempio n. 5
0
def process4():
    from task4 import main

    print("ID of process running process4: {}".format(os.getpid()))
    main(START + 4, url)
Esempio n. 6
0
def process3():
    from task3 import main

    print("ID of process running process3: {}".format(os.getpid()))
    main(START + 3, url)
Esempio n. 7
0
def process2():
    from task2 import main

    print("ID of process running process2: {}".format(os.getpid()))
    main(START + 2, url)
Esempio n. 8
0
def fetch():
    task1.main()
    return 'fetch success'