Wappler Version : 6.7.2
Operating System : Mac OS
Server Model: Nodejs
Database Type: mysql
Hosting Type: OrangeHost
Expected behavior
What do you think should happen?
Deleted Schedule server actions should not continue to run.
Actual behavior
What actually happens?
Scheduled server actions continues to run after deletion.
How to reproduce
I had set up three schedule actions in my project and published them. One of them was not working as intended so I deleted it locally and republished the site. The schedule was not deleted on the remote site, so I deleted it through CPanel. I took the extra step of emptying the CPanel trash.
Despite this, the deleted schedule action continues to run every day and send out emails to myself and users.
I am at a loss as to how else to remove to remove the scheduled action or where to look for it to remove it. I have done a search in the CPanel files section and cannot find it by file name.
If you delete a Server Action (or Scheduled Action, what he did) from local environment, I'm expecting to delete on remote environment. This is not happening! It's not about lack of restart, Wappler creates a restart.txt file to trigger a restart
And then he manually deleted it, but didn't restart the NodeJS server!
Did you use FTP for publishing the site? With FTP synchronization we do not delete remote files that are not on the local machine, because you might have user uploads that you don’t want to loose…
So that is why remote files have to be deleted manually. You can do that easily by using the remote target on the ftp manager in Wappler.
Ok, I'll try logging into OrangeHost and doing a nodejs restart that way. I had not considered that.
I have FTP set in the project settings and I use a combination of the push button when it is just files and the Publish button when there is a database change. I thought with the restart.txt that the server was being restarted and maybe it is, just not fully or something. I know it is not available for a few seconds after I either push or Publish the site.
Either way, I'll give it a try and see what happens, I will not know if it worked until tomorrow when it "runs" again.
This is not a solution but more of a work-around until you have a solution. Edit the offending scheduled Action and empty all the steps and just have a comment. That way the file will be replaced essentially with a redundant Action that won't do a lot...
As stated above, the file does not exist on the remote server or the local server. That is the issue. The schedule file is running when it should not because it has been deleted.
Well if the file was not there and the NodeJS server was restarted, there is no way it could pick up the old schedule… so there must be something else..
Yes, originally, I had three Schedule actions that sent emails each with a different email subject.
1.) For City actions that ran at 1400 UTC
2.) For State actions that ran at 1500 UTC
3.) For National actions that ran at 1600 UTC
The City action was not retrieving data correctly from the data base query so people who should not be getting emails were getting emails. Unable to resolve the issue, the Schedule action was deleted locally and remotely. The Schedule action continues at 1400 UTC every day (roughly 90 minutes ago). I am included on the email list, so I receive the emails along with the other people, which is how I know it is running.
I have implemented Cheese's solution of creating a Schedule action with the same name and only a comment with a timer of every 15 minutes to see if that resolves the issue.
The Schedule action in question just ran at 1400 UTC again.
To summarize, the schedule action had been deleted from the local and remote sever. The Nodejs server has been restarted via Wappler and the host CPanel.
A "dummy" schedule action has been recreated with only a comment in an attempt to override the deleted schedule action.
Still at a loss as to how this is happening. @Hyperbytes, could this be something with OrangeHost itself and not Wappler?