For these kinds of objects, you don't need to use the plugin system. Put your hooks / operators / sensors in a folder. Ensure the parent of that folder is in PYTHONPATH. Then, in your dag files, import these objects directly.
You can use git to deploy new code to your server, for example. And no need to restart anything. On Thu, Jun 4, 2020 at 11:45 PM Sunil Khaire <[email protected]> wrote: > Hi Team , > > Is there any way to register plugins (sensors,hooks,operators) in airflow > without even restarting the web server and scheduler. > > It is difficult to take scheduler and web server down in production when > workflows are actually running everyday at a tight schedule. > > > --Thanks, > Sunil Khaire > Data Engineer. >
