Access task level parameters along with parameters passed by airflow job

divyab7
New Contributor III

I have a airflow DAG which calls databricks job that has a task level parameters defined as job_run_id (job.run_id) and has a type as python_script. When I try to access it using sys.argv and spark_python_task, it only prints the json that has passed through the airflow job. I want that sys should be able to get both the parameters passed by DAG and databricks job. 

We have a use case where we don't want to use anything related to dbutils. Its a python script so we want it to be independent of dbutils.