Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
重新启动应用程序时失败会发生什么Service Task。它是否会再次尝试重试服务任务。
Service Task
如果不是,该过程如何进行。有没有办法手动重试服务任务?
我可以从 Flowable API 中看到,taskQuery 只列出了 UserTasks。
在 Flowable 中,当执行失败(由于某些异常)时,事务将回滚到工作流中的先前等待状态。这意味着它下次运行时将从那里继续。
您可以使服务任务异步,这将使其处于等待状态。在这种情况下,将创建一个异步作业并重试(默认为 3 次,但这是可配置的)。如果服务任务一直失败(配置的重试次数),作业将被移至死信作业,然后您需要手动触发它。