|
|
|
@ -24,7 +24,8 @@ from multiprocessing import Process
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
import transport
|
|
|
|
|
from transport import etl
|
|
|
|
|
# from transport import etl
|
|
|
|
|
from transport.iowrapper import IETL
|
|
|
|
|
# from transport import providers
|
|
|
|
|
import typer
|
|
|
|
|
from typing_extensions import Annotated
|
|
|
|
@ -60,10 +61,13 @@ def apply (path:Annotated[str,typer.Argument(help="path of the configuration fil
|
|
|
|
|
_config = [_config[ int(index)]]
|
|
|
|
|
jobs = []
|
|
|
|
|
for _args in _config :
|
|
|
|
|
pthread = etl.instance(**_args) #-- automatically starts the process
|
|
|
|
|
# pthread = etl.instance(**_args) #-- automatically starts the process
|
|
|
|
|
_worker = IETL(**_args)
|
|
|
|
|
pthread = Process(target=_worker.run)
|
|
|
|
|
pthread.start()
|
|
|
|
|
jobs.append(pthread)
|
|
|
|
|
#
|
|
|
|
|
# @TODO: Log the number of processes started and estimated time
|
|
|
|
|
# @TODO: Log the number of processes started and estfrom transport impfrom transport impimated time
|
|
|
|
|
while jobs :
|
|
|
|
|
jobs = [pthread for pthread in jobs if pthread.is_alive()]
|
|
|
|
|
time.sleep(1)
|
|
|
|
@ -88,6 +92,7 @@ def version():
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
print (transport.__app_name__,'version ',transport.__version__)
|
|
|
|
|
print ()
|
|
|
|
|
print (transport.__license__)
|
|
|
|
|
|
|
|
|
|
@app.command()
|
|
|
|
|