>From your hook you can call `self.get_connection("foo_conn_id")` (a static
method of BaseHook) to get a connection object.

It's also common practice for hooks to implement `get_conn` (don't confuse
it with BaseHook's `get_connection`) which is expected to return an active,
already connected client or connection object.

Max

On Wed, Jun 28, 2017 at 11:05 AM, David Capwell <[email protected]> wrote:

> I'm just starting out with airflow and looking to add my own artifactory
> hook so my tasks can pull from there.
>
> Looking at the docs this means I need a ArtifactoryHook but not clear to me
> how this integrates with connections.  Looking over the connection code the
> mapping is hard coded but the plug-in docs say to just build a hook.  I
> have a hello world hook but not sure how to link it with connections
> (connection tab does not list it)
>
> Thanks for your time reading this email
>

Reply via email to