Deploy template with script

Change the deploy template to use the caller_script.py in the same way it is used by the cache template.

There are some changes in the arguments, the most important one is that repo_label no longer exists, job_label is enough.

Tested from a stat machine:

python3 caller_script.py repo-sync --job-label dbt-jobs-to-hdfs --repo-url "https://gitlab.wikimedia.org/repos/data-engineering/dbt-jobs" --branch test-blunderbuss --bb-host "https://blunderbuss.discovery.wmnet:30443" --sleep-secs 1
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
Task e1ff38c6-f196-43c4-a755-ce34967c5dc9 not ready, sleeping
Requesting URL https://blunderbuss.discovery.wmnet:30443/task/e1ff38c6-f196-43c4-a755-ce34967c5dc9
is_ready=True is_success=True contents={'ready': True, 'result': '["repository"]', 'success': True}

Bug: T415338

Edited by JavierMonton

Merge request reports

Loading