File tree Expand file tree Collapse file tree
client/src/components/Tool/submit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import * as Sentry from "@sentry/vue" ;
2+
13import { useConfigStore } from "@/stores/configurationStore" ;
24
35import { submitToolJob as submitAsync } from "./submitAsync" ;
46import { submitToolJob as submitLegacy } from "./submitLegacy" ;
57
68export async function submitToolJob ( params ) {
79 const configStore = useConfigStore ( ) ;
10+ const celeryEnabled = ! ! configStore . config ?. enable_celery_tasks ;
811 const hasParameters = Array . isArray ( params . formConfig ?. parameters ) ;
9- if ( configStore . config ?. enable_celery_tasks && hasParameters ) {
12+ if ( celeryEnabled && hasParameters ) {
1013 return submitAsync ( params ) ;
1114 }
15+ if ( celeryEnabled && ! hasParameters ) {
16+ Sentry . captureMessage ( "tool submission fell back to /api/tools: no typed parameters" , {
17+ level : "info" ,
18+ tags : {
19+ fallback_reason : "no_parameters" ,
20+ tool_id : params . jobDef ?. tool_id ,
21+ } ,
22+ } ) ;
23+ }
1224 return submitLegacy ( params ) ;
1325}
You can’t perform that action at this time.
0 commit comments