I have been looking all over for the answer, but can't seem to find what I'm looking for
I want to create an api endpoint that can pass information to the dagster assets and trigger a run. For example, I have the following asset in dagster
@asset
def player_already_registered(player_name: str):
q = text(
f'''
SELECT
COUNT(*)
FROM
`player_account_info`
WHERE
summonerName = :player_name
'''
)
result = database.conn.execute(q, player_name=player_name).fetchone()[0]
return bool(result)
Say that I have an endpoint already made where I can pass the player_name
via a get-parameter. How can I pass the parameter to the asset and then run the job itself?