Thread
#prefect-community
    Newskooler

    Newskooler

    1 year ago
    Does anyone know why is this an invalid format in the Prameter section of the UI?
    {
    "strings": ['string1', 'string2'],
    'start_date': '20200920',
    'end_date': '20200930',
    }
    nicholas

    nicholas

    1 year ago
    Hi @Newskooler ! Yes, you'll need to use double quotes for those strings, since single quotes aren't correct in JSON syntax
    we have a ticket to make that clearer in those inputs: https://github.com/PrefectHQ/ui/issues/15
    Newskooler

    Newskooler

    1 year ago
    Yeah I changed that and it still did not work. I just found out that the trailing comma was causing the error too.
    nicholas

    nicholas

    1 year ago
    Ah yes, I missed that, sorry!
    Newskooler

    Newskooler

    1 year ago
    Btw @nicholas do you know how can I pass a Dask executor via the UI run? or should it passed in some other way?
    nicholas

    nicholas

    1 year ago
    Definitely, you can pass that as part of your flow's environment like this:
    from prefect.engine.executors import LocalDaskExecutor
    
    # other stuff
    
    flow.environment = LocalEnvironment(
        labels=[], executor=LocalDaskExecutor(scheduler="threads", num_workers=6),
    )
    Newskooler

    Newskooler

    1 year ago
    Thanks! I see there are two dask executors:
    LocalDaskExecutor
    and
    DaskExecutor
    , why is that?
    nicholas

    nicholas

    1 year ago
    LocalDaskExecutor:- uses the threaded / process based dask scheduler - can only run on one machine via multithreading / multiprocessing- a little more lightweight, a little less configurable - basically depends on your machine’s resources DaskExecutor:- uses the distributed scheduler - can run across multiple machines with networking configuration, etc. (clearly better for huge jobs) - can leverage heterogenous workers - requires more configuration (but does work locally!) / heavier
    Newskooler

    Newskooler

    1 year ago
    Thank you very much, again : )