Stephen Bailey
03/14/2022, 6:59 PMdbt_cloud
job that is just going to be polling an api for 2 hours, how could i specify a lightweight pod?
Should I define k8s_job_executor and apply some sensible defaults to it for the job, a la https://docs.dagster.io/_apidocs/libraries/dagster-k8s#dagster_k8s.k8s_job_executor?Stephen Bailey
03/14/2022, 7:00 PMjohann
03/14/2022, 7:04 PMjohann
03/14/2022, 7:05 PMwill this get ignored for local development?You should have a version of the jobs without the k8s executor for local dev. So it won’t have the k8s run config, and the tags will be ignored
Stephen Bailey
03/14/2022, 7:20 PMk8s_job_executor
is specified at all. in that case, will the tags just be ignored at run time in local environments?Stephen Bailey
03/14/2022, 7:21 PMfrom local.profiles import lightweight_k8s_profile
@job(tags=lightweight_k8s_profile)
def foo():
bar_op()
johann
03/14/2022, 7:22 PMk8s_job_executor
is configured, the tags for each op will be used. If the executor isn’t configured, all of the ops will be executing within a single K8s Job, so only the tag on the overall job is usedjohann
03/14/2022, 11:37 PM