irods / irods_capability_automated_ingest

Other
12 stars 15 forks source link

Use of --event-handler option causes immediate exit #188

Closed d-w-moore closed 1 year ago

d-w-moore commented 1 year ago

On a simple ingest, using a trivial event handler:

ubuntu@machine$ python3 -m irods_capability_automated_ingest.irods_sync start ./src_dir /tempZone/home/rods/reg_coll --synchronous --progress  --event_handler ./example.py

with any valid event handler class (even a trivial one) in example.py, for example:

from irods_capability_automated_ingest.core import Core
class event_handler(Core):
    pass

will immediately exit without beginning an ingest.

The culprit is almost 100% certainly the inappropriately indented exit call at the end of check_event_handler function.