You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stuart Berg edited this page Aug 28, 2015
·
2 revisions
Defining a new workflow requires creating a class that inherits from the Workflow or DVIDWorkflow classes defined in DVIDSparkServices.workflow. The workflow should be placed in the workflows directory and the name of the file should match the name of the workflow class.
The Workflow object requires that a workflow plugin implement the following two functions:
execute(): Implements the workflow's custom algorithm
dumpschema(): Returns a json schema for the configuration file that the workflow requires
For workflows that use DVID, inherit from the DVIDWorkflow class. DVIDWorkflow creates a dvid spark context and makes some json schema requirements (see DVIDSparkServices/workflows/dvidworkflow.py).