I am able to successfully run a River job using an API call externally. Python is my language. I am not sure how to pass a variable while running the River Job. I want the variable passed from API call to be set into a River Environment Variable.
Note - environment variables are read-only, and cannot be edited from a python step.
Would you mind providing some more details about your use case? Maybe I can help point you in the right direction if I understand your goals a bit more.
I need to trigger River Jobs event based rather a specific time of the day. I could not find any event based scheduler inside Rivery.
In order to achieve above goal I am successfully able to trigger river jobs through API call as mentioned in above post. But I do not know how to pass a variable which can be used inside the triggered river job ( for example the file name which needs to be ingested or the table name to which loading to happen )
Unfortunately Rivery doesn’t natively support event-based triggers. Just to confirm - this is python you are running outside of Rivery?
If that’s the case, you can leverage this endpoint to update a river variable (only supported for logic rivers at the moment.) You can however pass variables from logic into source to target river variables, explained here.
Thank you very much for your help. Right, we will call the API using Python outside of Rivery.
The use case is to Execute a River ingestion template to load for example 200 files into corresponding 200 tables in a target Database. We would like to have a River ingestion template/framework to be triggered externally as soon as files arrive on AWS S3.