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

Standardize output passing to match expected CMA format #9

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

reweeden
Copy link
Contributor

The standard way that cumulus tasks operate is that they expect to pass a payload object around that has a "granules" key and possibly some other keys. The default cumulus message config used if you don't specify an override is meant to work with tasks out of the box and would look like this:

"task_config": {
  "cumulus_message": {
    "outputs": [
      {
        "source": "{$}",
        "destination": "{$.payload}"
      }
    ]
  }
}

Right now in order to use this task, you have to override the default cumulus message processing to set the output like this:

"task_config": {
  "cumulus_message": {
    "outputs": [
      {
        "source": "{$.input}",
        "destination": "{$.payload}"
      }
    ]
  }
}

After these changes you will be able to use this task without setting any special cumulus message config.

@reweeden reweeden merged commit f99e819 into main Nov 21, 2024
3 checks passed
@reweeden reweeden deleted the rew/standardize-cma branch November 21, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants