. More in detail, I am converting into Prefect an existing process currently run locally through a simple CLI, to fetch and handle datasets from a remote server. One of the first things in this process is checking the dataset version, using
which returns a
. In the CLI this is then used in a simple logical block to determine how to continue. In the CLI a list of ids is handed and looped over, making that check for each element in the list (sequentially). I want to convert this into Prefect and take advantage of the parallelisation opportunities. Therefore, I thought that
would work great here, something like this (which is not possible):
The issue here being that the output from
ids = [id1, id2, id3] with Flow('Check version') as flow: with case (check_version.map(id=ids), True): val1 = action_if_true() with case (check_version.map(id=ids), False): val2 = action_if_false()
is mapped, and is therefore a list of bools -
, which cannot be compared against a
[True, True, False]
. I found no option to map case. I did however see the option to map switch, and I could imagine using that if I have to, but since it must take strings as input (it uses a
to get the different scenarios) it would require a conversion or changing the original functions in the CLI, which I would rather not do. This is a pretty simple thing, and I imagine someone else has solved this before, but could not locate anything in the docs or other places. Or perhaps I am thinking about this in the wrong way. Any input is welcome, thanks!
to be installed in order to connect to a SQLServer instance… i have pulled Prefects
docker image and ran interactively to test out pip install pyodbc… running into gcc issues, as expected, but i am now trying to
an odbc driver
and getting weird “not found” type results… i have run into similar issues, but was relying on a conda environment which allowed me to
but how can i replicate this here with
conda install pyodbc
Can we also delete projects, using a similar command ?
prefect create project "my-project"
I can confirm that
#> prefect auth login -t "<my token>" Error attempting to communicate with Prefect Cloud
isn't being created. Trying to use
to register any flow gives:
which unfortunately doesn't add any info. Pinging
prefect.utilities.exceptions.ClientError: Malformed response received from Cloud - please ensure that you have an API token properly configured.
PING <http://api.prefect.io|api.prefect.io> (188.8.131.52) 56(84) bytes of data. 64 bytes from <http://184.108.40.206.bc.googleusercontent.com|220.127.116.11.bc.googleusercontent.com> (18.104.22.168): icmp_seq=1 ttl=116 time=3.71 ms