Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Role of concurrency in order of script execution #415

Answered by chamini2
ritab-snow asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, @ritab-snow . You have a good point that we do not really run them in sequence. I will check out the documentation we have about this to fix it.

The way I would fix this is by making a new file python_transform/tfm_getzipcode_aggr.py (or some other name) with:

import python_transform.tfm_getzipcode as getzipcode
import python_transform.tfm_aggr as aggr

# Make the appropriate calls from here to each script
# getzipcode.<function>
# aggr.<function>

and change the schema.yml to be:

version: 2
models:
  - name: tfm_trip_distance
    description: "trip distance"
    meta:
      owner: "@Ritab"
      fal:
        scripts:
        - python_transform/tfm_getzipcode_aggr.py  
  - name: tfm_t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ritab-snow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants