Hi!
I'm using Rundeck Community 4.17.1.
The database is a Azure PostgreSQL Flexible Server (PaaS service) in the version 15.4.
Sometimes, my job just don't finished. It continues running forever. When this happen, I can see an open connection in the database running the following queries:
select this_.id as id1_14_0_, this_.version as version2_14_0_, this_.log_output_threshold as log_outp3_14_0_, this_.do_nodedispatch as do_noded4_14_0_, this_.next_execution as next_exe5_14_0_, this_.date_created as date_cre6_14_0_, this_.node_keepgoing as node_kee7_14_0_, this_.node_exclude_os_arch as node_exc8_14_0_, this_.uuid as uuid9_14_0_, this_.node_include as node_in10_14_0_, this_.success_on_empty_node_filter as success11_14_0_, this_.node_exclude_os_version as node_ex12_14_0_, this_.timeout as timeout13_14_0_, this_.node_exclude_precedence as node_ex14_14_0_, this_.node_exclude_name as node_ex15_14_0_, this_.notify_avg_duration_threshold as notify_16_14_0_, this_.day_of_week as day_of_17_14_0_, this_.node_include_os_version as node_in18_14_0_, this_.node_exclude_os_name as node_ex19_14_0_, this_.retry as retry20_14_0_, this_.filter as filter21_14_0_, this_.group_path as group_p22_14_0_, this_.scheduled as schedul23_14_0_, this_.orchestrator_id as orchest24_14_0_, this_.node_threadcount_dynamic as node_th25_14_0_, this_.node_include_name as node_in26_14_0_, this_.multiple_executions as multipl27_14_0_, this_.time_zone as time_zo28_14_0_, this_.rduser as rduser29_14_0_, this_.node_include_os_name as node_in30_14_0_, this_.filter_exclude as filter_31_14_0_, this_.node_exclude as node_ex32_14_0_, this_.node_rank_order_ascending as node_ra33_14_0_, this_.nodes_selected_by_default as nodes_s34_14_0_, this_.node_include_os_arch as node_in35_14_0_, this_.loglevel as logleve36_14_0_, this_.node_exclude_os_family as node_ex37_14_0_, this_.execution_enabled as executi38_14_0_, this_.max_multiple_executions as max_mul39_14_0_, this_.node_include_os_family as node_in40_14_0_, this_.last_updated as last_up41_14_0_, this_.retry_delay as retry_d42_14_0_, this_.workflow_id as workflo43_14_0_, this_.exec_count as exec_co44_14_0_, this_.month as month45_14_0_, this_.hour as hour46_14_0_, this_.log_output_threshold_action as log_out47_14_0_, this_.arg_string as arg_str48_14_0_, this_.user_role_list as user_ro49_14_0_, this_.total_time as total_t50_14_0_, this_.node_rank_attribute as node_ra51_14_0_, this_.server_nodeuuid as server_52_14_0_, this_.default_tab as default53_14_0_, this_.node_exclude_tags as node_ex54_14_0_, this_.seconds as seconds55_14_0_, this_.exclude_filter_uncheck as exclude56_14_0_, this_.ref_exec_count as ref_exe57_14_0_, this_.node_threadcount as node_th58_14_0_, this_.node_include_tags as node_in59_14_0_, this_.job_name as job_nam60_14_0_, this_.schedule_enabled as schedul61_14_0_, this_.year as year62_14_0_, this_.day_of_month as day_of_63_14_0_, this_.node_filter_editable as node_fi64_14_0_, this_.log_output_threshold_status as log_out65_14_0_, this_.description as descrip66_14_0_, this_.minute as minute67_14_0_, this_.project as project68_14_0_, this_.plugin_config as plugin_69_14_0_
from scheduled_execution this_
where this_.uuid = ?
limit ?
... and
insert into base_report ( version, tags, node, ctx_type, author, title, message, date_completed, date_started, status, action_type, mapref_uri, ctx_project, report_id, ctx_name, aborted_by_user, ctx_controller, job_uuid, succeeded_node_list, ctx_command, failed_node_list, adhoc_execution, adhoc_script, execution_id, jc_job_id, filter_applied, class, id ) values ( ? )
The behavior is as if the application forgot to run a COMMIT or ROLLBACK in the end of the transaction. If I try to update the execution in the "execution" table it generates a lock because of the INSERT query, then I need to kill all these queries and performe the UPDATE manually.
Can someone help me please?
Thank you!