Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAG-like workflows #51

Open
JoshKarpel opened this issue Oct 6, 2018 · 2 comments
Open

DAG-like workflows #51

JoshKarpel opened this issue Oct 6, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@JoshKarpel
Copy link
Contributor

We should implement some kind of DAG workflow support, likely piggy-backing off of HTCondor's DAG support.

One possible API to model this off of: https://keras.io/models/model/

@JoshKarpel JoshKarpel added the enhancement New feature or request label Oct 6, 2018
@JoshKarpel JoshKarpel self-assigned this Oct 6, 2018
@stsievert
Copy link
Contributor

stsievert commented Apr 8, 2020

Dask has a good API for DAGs: https://docs.dask.org/en/latest/graphs.html. The specification is not at all Dask specific. For example, here's a computation and it's DAG representation:

Computation:

def inc(i):
    return i + 1

def add(a, b):
    return a + b

x = 1
y = inc(x)
z = add(y, 10)

DAG representation:

d = {
    'x': 1,
    'y': (inc, 'x'),
    'z': (add, 'y', 10)
}

Incorporating this DAG-specification might mean better integration with Dask (better than the current HTCondorCluster (I would guess this is the case, though I'm not familiar with the internals of Dask).

@keith6014
Copy link

My suggestion would be to use DAGman for everything, including vanilla type jobs. Then use the DASK like setup to build the DAGs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants