globus-gladier / gladier

An SDK for rapidly developing Globus Flows while leveraging Globus Compute
Apache License 2.0
9 stars 3 forks source link

Fix legacy functions #248

Closed NickolausDS closed 1 year ago

NickolausDS commented 1 year ago

Using modifiers for old tools will no longer be allowed, and will require tools to be updated to use the new compute function syntax. Requiring upgrades fixes a problem where attempting to use modifiers will work, but cause a mismatch in inputs causing unexpected failures when running flows. Instead of making this fully backwards compatible, it's easier to just make people upgrade or downgrade to the correct versions.

For example, flows will need to be defined with the following:

'tasks': [{
    'endpoint.$': '$.input.compute_endpoint',
    'function.$': f'$.input.my_function_name_function_id',
    'payload.$': '$.input',
}]

And all tools will need to define "compute_endpoints" and "compute_functions" instead of "funcx_endpoint_compute/funcx_endpoint_non_compute" and "my_function_name_funcx_id".

More info in the migration guide.