Looking at the logs is a good start.

Also, try to test the script and DAG with these commands
1. python /path/to/python-script.py  # test the python script is valid
2. python /path/to/dag.py                 # test the dag
3. airflow list_tasks <name-of-the-dag>  # or airflow list_dags   -> these
validate the dag
4. airflow test <name-of-the-dag> <name-of-the-tak> <execution-date, i.e.
2020-02-03>

Cheers

On Tue, Feb 4, 2020 at 4:40 AM bharath palaksha <[email protected]>
wrote:

> It looks to be some compilation error on your python script, check worker
> logs
>
> On Tue, Feb 4, 2020, 5:52 PM priyanka gugale <[email protected]> wrote:
>
> > Hi,
> >
> > I am trying to run my python script in a dag. For some reason it get's
> > killed exactly in 10s. The script runs a query to remote server so takes
> > little more time.
> >
> > I couldn't figure out which configuration should cause such problem, can
> > anyone help me with this?
> >
> > -Priyanka
> >
>

Reply via email to