Skip to content

Job group names or batch names #270

Description

@scottyhq

Jira: https://asfdaac.atlassian.net/browse/TOOL-2900

Note: The above link is accessible only to members of ASF.


Is your feature request related to a problem? Please describe.
With burst processing, a common approach is to submit a batch of jobs in one go with jobs = hyp3.submit_prepared_jobs(jobs) where a single job might look like this:

{'name': '115_245676_IW2_20190108_20190120_5rlks',
 'job_type': 'INSAR_ISCE_BURST',
 'job_parameters': {'granules': ['S1_245676_IW2_20190108T141423_VV_D96D-BURST',
   'S1_245676_IW2_20190120T141423_VV_D8A3-BURST'],
  'apply_water_mask': False,
  'looks': '5x1'}}

Describe the solution you'd like
I think it would be nice to have a group or batch or project name in the metadata for such a group of jobs to make locating these logically-grouped sets of jobs easier in the future. For example the unique burst ID from the example above group:'115_245676_IW2'. This could then be an easy way to revisit groups of jobs in the future:

batch_jobs = hyp3.find_jobs(group='115_245676_IW2')

Describe alternatives you've considered
I realize I could instead just use a generic job name 115_245677_IW2 and each job gets automatically assigned a unique ID but I prefer job names that are unique and human-readable

I currently find myself doing custom filtering on job names to extract the jobs I want to work with:

batch_jobs = [j for j in jobs if j.name != None and j.name.startswith('115_245677_IW2')]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Jira StoryCreate a Jira Story for this issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions