Coder Social home page Coder Social logo

Comments (4)

boring-cyborg avatar boring-cyborg commented on August 16, 2024

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

from airflow.

nathadfield avatar nathadfield commented on August 16, 2024

@dotrungkien3210 I'm afraid you are going to have to provide more information and context for anyone to be able to assist you in this. If this is a bug then you'll need to demonstrate it in a way that can be reproduced. If this is more of a support/implementation problem then you will be much better served by speaking to the community in Slack.

from airflow.

dotrungkien3210 avatar dotrungkien3210 commented on August 16, 2024

Hi @nathadfield this is full DAG code
command_build = 'bash bin/airflow_build.sh '
checkout_branch = 'master'
build_command = 'bash /home/airflow/platform/check_git/checkgit.sh ' + path_project + ' ' + project_name + ' "' + command_build + '" ' + checkout_branch
build_ope = SSHOperator(
ssh_hook=sshHook,
task_id='crawler-system_build',
command=build_command,
on_failure_callback=create.task_on_failure_callback,
get_pty=True,
do_xcom_push=False,
dag=dag)
command = 'cd ' + path_project + project_name + ' && bash bin/run_migrate_story_book.sh '
run_ope = SSHOperator(
ssh_hook=sshHook,
task_id=dag_name,
do_xcom_push=False,
on_failure_callback=create.task_on_failure_callback,
command=command,
dag=dag)

config = create_dag.getConfig(path="/airflow/crawler-system")

for key, value in config.items():
getConf = SSHOperator(
ssh_hook=sshHook,
task_id='get_config_' + key,
command='echo "' + value + '" > ' + path_project + project_name + '/' + 'properties/' + key,
on_failure_callback=create.task_on_failure_callback,
get_pty=True,
do_xcom_push=False,
dag=dag
)
getConf >> build_ope
pass

server_bs = create_dag.select_server('', '')
sshHook_bs = SSHHook(server_bs)
command_build_bs = 'bash bin/schedule/build_airflow.sh '
build_command_bs = 'bash /home/airflow/platform/check_git/checkgit.sh ' + path_project_bs + ' ' + project_name_bs + ' "' + command_build_bs + '" ' + checkout_branch
build_ope_bs = SSHOperator(
ssh_hook=sshHook_bs,
task_id='brandSafety_build',
command=build_command_bs,
on_failure_callback=create.task_on_failure_callback,
get_pty=True,
do_xcom_push=False,
dag=dag)

command_bs = 'cd ' + path_project_bs + project_name_bs + ' && bash bin/schedule/run_check_coverage_storybook.sh '
run_ope_bs = SSHOperator(
ssh_hook=sshHook_bs,
task_id='check_coverage_storybook',
do_xcom_push=False,
on_failure_callback=create.task_on_failure_callback,
command=command_bs,
dag=dag)

config_bs = create_dag.getConfig(path="/airflow/bs-core")
for key, value in config_bs.items():
getConf = SSHOperator(
ssh_hook=sshHook_bs,
task_id='get_config_bs_' + key,
command='echo "' + value + '" > ' + path_project_bs + project_name_bs + '/' + 'properties/' + key,
on_failure_callback=create.task_on_failure_callback,
get_pty=True,
do_xcom_push=False,
dag=dag
)
getConf >> build_ope_bs
pass

command_build_repush = 'bash bin/airflow_build.sh '
build_command_repush = 'bash /home/airflow/platform/check_git/checkgit.sh ' + path_project + ' ' + project_name + ' "' + command_build_repush + '" ' + checkout_branch
build_ope_repush = SSHOperator(
ssh_hook=sshHook_bs,
task_id='crawler-system_build_repush',
command=build_command_repush,
on_failure_callback=create.task_on_failure_callback,
get_pty=True,
do_xcom_push=False,
dag=dag)

command_repush = 'cd ' + path_project + project_name + ' && bash bin/run_repush_storybook.sh '
run_ope_repush = SSHOperator(
ssh_hook=sshHook_bs,
task_id='repush_story_book',
do_xcom_push=False,
on_failure_callback=create.task_on_failure_callback,
command=command_repush,
dag=dag)

config_repush = create_dag.getConfig(path="/airflow/bs-core")
for key, value in config_bs.items():
getConf = SSHOperator(
ssh_hook=sshHook_bs,
task_id='get_config_repush_' + key,
command='echo "' + value + '" > ' + path_project + project_name + '/' + 'properties/' + key,
on_failure_callback=create.task_on_failure_callback,
get_pty=True,
do_xcom_push=False,
dag=dag
)
getConf >> build_ope_repush
pass

[build_ope, build_ope_bs, build_ope_repush] >> run_ope >> run_ope_bs >> run_ope_repush

from airflow.

nathadfield avatar nathadfield commented on August 16, 2024

Thanks but this does not provide us with the ability to reproduce the problem, if indeed there even is a bug behind the problem you are facing and it not be something to do with your code or your implementation. You will have to try and pinpoint the problem a bit more on your side before anyone can really assess whether there truly is a bug or not.

from airflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.