<p>I got freez of Sklearn-classifier in MLRun (the job is still running after 5, 10, 20, ... minutes), see log output:</p>
<pre><code>2023-02-21 13:50:15,853 [info] starting run training uid=e8e66defd91043dda62ae8b6795c74ea DB=http://mlrun-api:8080
2023-02-21 13:50:16,136 [info] Job is running in the background, pod: training-tgplm
</code></pre>
<p>see freez/pending issue on Web UI:</p>
<p><a href="https://i.stack.imgur.com/6IhBB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6IhBB.png" alt="enter image description here" /></a></p>
<p>I used this source code and <code>classifier_fn.run(train_task, local=False)</code> generates freez:</p>
<pre><code># Import the Sklearn classifier function from the function hub
classifier_fn = mlrun.import_function('hub://sklearn-classifier')

# Prepare the parameters list for the training function
training_params = {&quot;model_name&quot;: ['risk_xgboost'],              
              &quot;model_pkg_class&quot;: ['sklearn.ensemble.GradientBoostingClassifier']}

# Define the training task, including the feature vector, label and hyperparams definitions
train_task = mlrun.new_task('training', 
                      inputs={'dataset': transactions_fv.uri},
                      params={'label_column': 'n4_pd30'}
                     )

train_task.with_hyper_params(training_params, strategy='list', selector='max.accuracy')

# Specify the cluster image
classifier_fn.spec.image = 'mlrun/mlrun'

# Run training
classifier_fn.run(train_task, local=False)
</code></pre>
<p>Did you have and solve the same issue?</p>

<p>I solved the same issue and the problem was with different MLRun version between client side and server side. I had MLRun on client in version <strong>1.2.1rc2</strong> and server side in version <strong>1.2.1</strong> (these versions have different interfaces and it generates freez issue).</p>
<p><strong>Please, synch MLRun versions between client and server and it will works.</strong></p>
<p>BTW: Your part of code seems as this original sample here <a href="https://docs.mlrun.org/en/stable/feature-store/end-to-end-demo/02-create-training-model.html" rel="nofollow noreferrer">https://docs.mlrun.org/en/stable/feature-store/end-to-end-demo/02-create-training-model.html</a></p>
