Skip to content

Commit

Permalink
remove bayesian{PackageTagging,Summary}Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Sehnoutka committed Nov 22, 2018
1 parent f30a78b commit fe3f736
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
16 changes: 0 additions & 16 deletions f8a_worker/dispatcher/flows/bayesianPackageFlow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
queue: '{DEPLOYMENT_PREFIX}_ingestion_bayesianPackageFlow_v0'
propagate_node_args:
- 'bayesianPackageAnalysisFlow'
- 'bayesianPackageTaggingFlow'
node_args_from_first: true
nowait: 'PackageGraphImporterTask'
sampling:
Expand All @@ -22,18 +21,7 @@
args:
key: 'document_id'
- from: 'bayesianPackageAnalysisFlow'
to: 'bayesianPackageTaggingFlow'
condition: &shouldSchedulePackageTaggingCheck
name: 'alwaysFalse'
- from: 'bayesianPackageAnalysisFlow'
to: 'PackageFinalizeTask'
condition:
not:
<<: *shouldSchedulePackageTaggingCheck
- from: 'bayesianPackageTaggingFlow'
to: 'PackageFinalizeTask'
condition:
<<: *shouldSchedulePackageTaggingCheck
- from: 'PackageFinalizeTask'
to: 'PackageResultCollector'
- from: 'PackageResultCollector'
Expand All @@ -56,10 +44,6 @@
value: true
failures:
- nodes: 'bayesianPackageAnalysisFlow'
fallback: 'bayesianPackageTaggingFlow'
condition:
<<: *shouldSchedulePackageTaggingCheck
- nodes: 'bayesianPackageTaggingFlow'
fallback: 'PackageFinalizeTaskError'

- <<: *bayesianPackageFlow
Expand Down
2 changes: 0 additions & 2 deletions f8a_worker/dispatcher/nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@
- 'bayesianApiPackageFlow'
- 'bayesianPriorityPackageFlow'
- 'bayesianPackageAnalysisFlow'
- 'bayesianPackageTaggingFlow'
- 'componentApiFlow'
- 'keywordsSummaryFlow'
- 'keywordsApiSummaryFlow'
- 'keywordsPrioritySummaryFlow'
- 'dependencyIngestFlow'
Expand Down
3 changes: 1 addition & 2 deletions f8a_worker/dispatcher/selective.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ def selective_run_function(flow_name, node_name, node_args, task_names, storage_
:return: ID of task that should be reused, None if task should be run again
"""
try:
if flow_name in ('bayesianPackageFlow', 'bayesianPackageAnalysisFlow',
'bayesianPackageTaggingFlow'):
if flow_name in ('bayesianPackageFlow', 'bayesianPackageAnalysisFlow'):
task_result = storage_pool.get_connected_storage('PackagePostgres').\
get_latest_task_entry(
node_args['ecosystem'],
Expand Down

0 comments on commit fe3f736

Please sign in to comment.